-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
40 lines (36 loc) · 750 Bytes
/
App.js
File metadata and controls
40 lines (36 loc) · 750 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
36
37
38
39
40
/**
* Sample React Native App
* https://github.com/facebook/react-native
*
* @format
* @flow strict-local
*/
import React, { Component } from 'react';
import {
SafeAreaView,
StyleSheet,
StatusBar,
View,
Text,
YellowBox,
} from 'react-native';
import Home from './src/components/Home';
import { Root } from 'native-base';
YellowBox.ignoreWarnings(['Animated: `useNativeDriver` was not specified.'])
export default class App extends Component {
render(){
return (
<Root>
<StatusBar barStyle="dark-content" />
<SafeAreaView style={styles.safeAreaView}>
<Home/>
</SafeAreaView>
</Root>
);
}
};
const styles = StyleSheet.create({
safeAreaView: {
flex:1
}
});