-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathApp.js
More file actions
35 lines (32 loc) · 922 Bytes
/
App.js
File metadata and controls
35 lines (32 loc) · 922 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import { StatusBar } from 'expo-status-bar';
import { StyleSheet, Platform, View } from 'react-native';
import { requireNativeComponent } from 'react-native';
import { LiveLikeAndroidView } from './LiveLikeAndroidView';
const LiveLikeiOSView = requireNativeComponent("LiveLikeiOSView")
export default function App() {
const isIOS = Platform.OS == 'ios';
return (
<View style={styles.container}>
{isIOS ? (
<LiveLikeiOSView style={styles.wrapper}></LiveLikeiOSView>
) : (
<LiveLikeAndroidView style={styles.wrapper}></LiveLikeAndroidView>
)}
<StatusBar style="auto" />
</View>
);
}
const styles = StyleSheet.create({
container: {
flex: 1, alignItems: "stretch"
},
wrapper: {
flex: 1, alignItems: "center", justifyContent: "center"
},
border: {
borderColor: "#eee", borderBottomWidth: 1
},
button: {
fontSize: 50, color: "orange"
}
});