-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.tsx
More file actions
41 lines (38 loc) · 929 Bytes
/
Copy pathApp.tsx
File metadata and controls
41 lines (38 loc) · 929 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
41
/**
* Sample React Native App
* https://github.com/facebook/react-native
*
* @format
*/
import React from 'react';
import {SafeAreaView, StyleSheet, Text, TextInput, View} from 'react-native';
import {NumericInput} from './NumericInput';
function App(): JSX.Element {
return (
<SafeAreaView>
<View style={styles.row}>
<Text style={styles.label}>Numeric Input</Text>
<NumericInput style={styles.input} />
</View>
<View style={styles.row}>
<Text style={styles.label}>TextInput</Text>
<TextInput inputMode={'numeric'} style={styles.input} />
</View>
</SafeAreaView>
);
}
const styles = StyleSheet.create({
label: {flex: 2, fontSize: 24},
input: {
flex: 1,
borderWidth: 1,
fontSize: 24,
// height: '100%',
},
row: {
flexDirection: 'row',
alignItems: 'center',
justifyContent: 'space-evenly',
},
});
export default App;