-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.tsx
More file actions
42 lines (37 loc) · 1.16 KB
/
App.tsx
File metadata and controls
42 lines (37 loc) · 1.16 KB
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
36
37
38
39
40
41
42
/* eslint-disable react-native/no-inline-styles */
/* eslint-disable react/react-in-jsx-scope */
import {StyleSheet, View, SafeAreaView} from 'react-native';
import MenuReactApiRTC from './src/MenuReactApiRTC';
import {library} from '@fortawesome/fontawesome-svg-core';
import {faSquareCheck} from '@fortawesome/free-solid-svg-icons/faSquareCheck';
import {faCloud} from '@fortawesome/free-solid-svg-icons/faCloud';
library.add(faSquareCheck, faCloud);
//Following lines are used to deactivate Hot reloading during app devlopment.
//This is done as hot reloading may result in bad application status in our case
import {NativeModules} from 'react-native';
if (__DEV__) {
NativeModules.DevSettings.setHotLoadingEnabled(false);
}
export default function App() {
return (
<View style={styles.container}>
<SafeAreaView style={{width: '100%', height: '100%'}}>
<MenuReactApiRTC />
</SafeAreaView>
</View>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#fff',
alignItems: 'center',
justifyContent: 'center',
},
button: {
margin: 5,
paddingLeft: 2,
paddingRight: 2,
fontSize: 20,
},
});