Created
May 23, 2020 19:00
-
-
Save Billmike/c4b529fecffdba35729fd456e9585f40 to your computer and use it in GitHub Desktop.
Revisions
-
Billmike created this gist
May 23, 2020 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,32 @@ const App = () => { const { width, height } = Dimensions.get('window'); return ( <> <StatusBar barStyle="dark-content" /> <SafeAreaView style={{ flex: 1 }}> <ScrollView style={{ flex: 1 }} horizontal={true} scrollEventThrottle={16} pagingEnabled={true} > <View style={{ width, height }}> <Text>Screen 1</Text> </View> <View style={{ width, height }}> <Text>Screen 2</Text> </View> <View style={{ width, height }}> <Text>Screen 3</Text> </View> <View style={{ width, height }}> <Text>Screen 4</Text> </View> <View style={{ width, height }}> <Text>Screen 5</Text> </View> </ScrollView> </SafeAreaView> </> ); };