-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
39 lines (35 loc) · 748 Bytes
/
App.js
File metadata and controls
39 lines (35 loc) · 748 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
/**
* Sample React Native App
* https://github.com/facebook/react-native
*
* @format
* @flow strict-local
*/
import React from 'react';
import {SafeAreaView, StyleSheet, TextInput, View, Text} from 'react-native';
const App = () => {
return (
<View style={styles.container}>
<TextInput placeholder="Enter some text here" />
<View style={styles.bottom}>
<Text>Pin me to the bottom of the screen</Text>
</View>
</View>
);
};
const styles = StyleSheet.create({
container: {
flex: 1,
},
bottom: {
height: 56,
backgroundColor: 'red',
position: 'absolute',
bottom: 0,
left: 0,
right: 0,
justifyContent: 'center',
alignItems: 'center',
},
});
export default App;