aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Shillingford <jgs272@cornell.edu>2020-06-29 16:21:43 -0400
committerJustin Shillingford <jgs272@cornell.edu>2020-06-29 16:21:43 -0400
commit5c26e9b92b0fcdd34905719547a9c1d67742dc7f (patch)
tree04adf270ceaf3389578c3f7ca3c6e64f573ecef1
parente8587757ced208708311d80838c9b24777f8edbb (diff)
Created StyleSheet for Registration.tsx
The Linter was bothering me lol
-rw-r--r--src/screens/Registration.tsx16
1 files changed, 13 insertions, 3 deletions
diff --git a/src/screens/Registration.tsx b/src/screens/Registration.tsx
index 44658591..57b0eb18 100644
--- a/src/screens/Registration.tsx
+++ b/src/screens/Registration.tsx
@@ -1,14 +1,24 @@
import React from 'react';
-import {View, Text} from 'react-native';
+import {View, Text, StyleSheet} from 'react-native';
interface RegistrationProps {}
const Registration: React.FC<RegistrationProps> = ({}) => {
return (
- <View style={{flex: 1, alignSelf: 'center', justifyContent: 'center'}}>
- <Text style={{fontSize: 18}}>Registration sequence begins here!</Text>
+ <View style={styles.view}>
+ <Text style={styles.text}>Registration sequence begins here!</Text>
</View>
);
};
+const styles = StyleSheet.create({
+ view: {
+ flex: 1,
+ alignSelf: 'center',
+ justifyContent: 'center',
+ },
+ text: {
+ fontSize: 18,
+ },
+});
export default Registration;