aboutsummaryrefslogtreecommitdiff
path: root/App.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'App.tsx')
-rw-r--r--App.tsx89
1 files changed, 13 insertions, 76 deletions
diff --git a/App.tsx b/App.tsx
index 6106df43..bb9d3c45 100644
--- a/App.tsx
+++ b/App.tsx
@@ -26,93 +26,30 @@ import {
ReloadInstructions,
} from 'react-native/Libraries/NewAppScreen';
+import LinearGradient from 'react-native-linear-gradient';
+
declare const global: {HermesInternal: null | {}};
const App = () => {
return (
<>
- <StatusBar barStyle="dark-content" />
- <SafeAreaView>
- <ScrollView
- contentInsetAdjustmentBehavior="automatic"
- style={styles.scrollView}>
- <Header />
- {global.HermesInternal == null ? null : (
- <View style={styles.engine}>
- <Text style={styles.footer}>Engine: Hermes</Text>
- </View>
- )}
- <View style={styles.body}>
- <View style={styles.sectionContainer}>
- <Text style={styles.sectionTitle}>Step One</Text>
- <Text style={styles.sectionDescription}>
- Edit <Text style={styles.highlight}>App.tsx</Text> in order to change
- this screen and then come back to see your edits.
- </Text>
- </View>
- <View style={styles.sectionContainer}>
- <Text style={styles.sectionTitle}>See Your Changes</Text>
- <Text style={styles.sectionDescription}>
- <ReloadInstructions />
- </Text>
- </View>
- <View style={styles.sectionContainer}>
- <Text style={styles.sectionTitle}>Debug</Text>
- <Text style={styles.sectionDescription}>
- <DebugInstructions />
- </Text>
- </View>
- <View style={styles.sectionContainer}>
- <Text style={styles.sectionTitle}>Learn More</Text>
- <Text style={styles.sectionDescription}>
- Read the docs to discover what to do next:
- </Text>
- </View>
- <LearnMoreLinks />
- </View>
- </ScrollView>
- </SafeAreaView>
+ <View style={styles.container}>
+ <LinearGradient colors={['#8F00FF', '#6EE7E7']} style={styles.linearGradient} useAngle={true} angle={154.72} angleCenter={{x:0.5,y:0.5}}>
+
+ </LinearGradient>
+ </View>
</>
);
};
const styles = StyleSheet.create({
- scrollView: {
- backgroundColor: Colors.lighter,
- },
- engine: {
- position: 'absolute',
- right: 0,
- },
- body: {
- backgroundColor: Colors.white,
- },
- sectionContainer: {
- marginTop: 32,
- paddingHorizontal: 24,
- },
- sectionTitle: {
- fontSize: 24,
- fontWeight: '600',
- color: Colors.black,
- },
- sectionDescription: {
- marginTop: 8,
- fontSize: 18,
- fontWeight: '400',
- color: Colors.dark,
- },
- highlight: {
- fontWeight: '700',
- },
- footer: {
- color: Colors.dark,
- fontSize: 12,
- fontWeight: '600',
- padding: 4,
- paddingRight: 12,
- textAlign: 'right',
+ container: {
+ flex: 1,
+ backgroundColor: 'transparent'
},
+ linearGradient: {
+ flex: 1,
+ }
});
export default App;