File tree Expand file tree Collapse file tree 3 files changed +538
-1925
lines changed Expand file tree Collapse file tree 3 files changed +538
-1925
lines changed Original file line number Diff line number Diff line change 5
5
SafeAreaView ,
6
6
FlatList ,
7
7
View ,
8
+ StatusBar ,
8
9
} from 'react-native' ;
9
10
import SimpleStepper from 'react-native-simple-stepper' ;
10
11
@@ -126,6 +127,7 @@ export default function App(): React.JSX.Element {
126
127
return (
127
128
< SafeAreaView >
128
129
< FlatList
130
+ style = { styles . list }
129
131
data = { steppers }
130
132
initialNumToRender = { steppers . length }
131
133
renderItem = { _renderItem }
@@ -138,6 +140,9 @@ export default function App(): React.JSX.Element {
138
140
}
139
141
140
142
const styles = StyleSheet . create ( {
143
+ list : {
144
+ marginTop : StatusBar . currentHeight ,
145
+ } ,
141
146
row : {
142
147
flexDirection : 'row' ,
143
148
alignItems : 'center' ,
Original file line number Diff line number Diff line change 2
2
"name" : " simplestepperexample" ,
3
3
"version" : " 1.0.0" ,
4
4
"main" : " index.ts" ,
5
+ "private" : true ,
5
6
"scripts" : {
6
7
"start" : " expo start" ,
7
8
"android" : " expo start --android" ,
8
9
"ios" : " expo start --ios" ,
9
10
"web" : " expo start --web"
10
11
},
11
12
"dependencies" : {
12
- "expo" : " ~52 .0.17 " ,
13
- "react" : " 18.3.1 " ,
14
- "react-native" : " 0.76.3 " ,
13
+ "expo" : " ~53 .0.9 " ,
14
+ "react" : " 19.0.0 " ,
15
+ "react-native" : " 0.79.2 " ,
15
16
"react-native-simple-stepper" : " 4.2.0"
16
17
},
17
18
"devDependencies" : {
18
19
"@babel/core" : " ^7.25.2" ,
19
- "@types/react" : " ~18.3.12 " ,
20
- "typescript" : " ^5.3 .3"
20
+ "@types/react" : " ~19.0.10 " ,
21
+ "typescript" : " ^5.8 .3"
21
22
},
22
- "private" : true ,
23
- "packageManager" :
" [email protected] "
23
+ "packageManager" :
" [email protected] "
24
24
}
You can’t perform that action at this time.
0 commit comments