Last active
September 5, 2023 01:47
-
-
Save sadewole/460e58c2d163ce924d0a26399ef8fa66 to your computer and use it in GitHub Desktop.
Credit card files
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { StatusBar } from 'expo-status-bar'; | |
import { | |
SafeAreaView, | |
StyleSheet, | |
Text, | |
View, | |
TextInput, | |
TouchableOpacity, | |
} from 'react-native'; | |
export default function App() { | |
return ( | |
<SafeAreaView style={styles.container}> | |
<StatusBar style='light' /> | |
<View style={{ padding: 16, flex: 1 }}> | |
<Text style={styles.header}>Card Payment</Text> | |
<View style={{ flex: 1 }}> | |
<View style={{ marginBottom: 16 }}> | |
<Text style={{ color: '#fff' }}>Card number</Text> | |
<TextInput style={styles.textInput} /> | |
</View> | |
<View style={{ flexDirection: 'row', gap: 16 }}> | |
<View style={{ flex: 1 }}> | |
<Text style={{ color: '#fff' }}>Expiry date</Text> | |
<TextInput style={styles.textInput} /> | |
</View> | |
<View style={{ flex: 1 }}> | |
<Text style={{ color: '#fff' }}>CVV number</Text> | |
<TextInput style={styles.textInput} /> | |
</View> | |
</View> | |
</View> | |
<TouchableOpacity style={styles.button}> | |
<Text style={{ color: '#fff' }}>Save</Text> | |
</TouchableOpacity> | |
</View> | |
</SafeAreaView> | |
); | |
} | |
const styles = StyleSheet.create({ | |
container: { | |
flex: 1, | |
backgroundColor: '#010101', | |
}, | |
header: { | |
textAlign: 'center', | |
fontSize: 30, | |
fontWeight: 600, | |
marginBottom: 24, | |
color: '#fff', | |
}, | |
textInput: { | |
borderRadius: 8, | |
borderWidth: 2, | |
padding: 12, | |
backgroundColor: '#fff', | |
fontSize: 16, | |
}, | |
button: { | |
backgroundColor: '#C51B53', | |
borderRadius: 24, | |
padding: 12, | |
alignItems: 'center', | |
justifyContent: 'center', | |
}, | |
}); |
Author
sadewole
commented
Sep 4, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment