MCPcopy Create free account
hub / github.com/react-native-linear-gradient/react-native-linear-gradient / App

Function App

example/src/App.tsx:32–80  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30};
31
32const App = () => {
33 const rnVersion = pkg.dependencies['react-native'];
34 // @ts-ignore
35 const jsEngine = global?.HermesInternal ? 'Hermes' : 'JSC';
36 // @ts-ignore
37 const uiManager = global?.nativeFabricUIManager ? 'Fabric' : 'Paper';
38 return (
39 <SafeAreaView style={styles.container}>
40 <StatusBar
41 backgroundColor="#ffffff00"
42 barStyle={'dark-content'}
43 translucent={true}
44 />
45 <ImageBackground
46 source={require('react-native/Libraries/NewAppScreen/components/logo.png')}
47 style={styles.titleContainer}
48 imageStyle={styles.logo}>
49 <View style={styles.badge}>
50 <Text style={styles.badgeText}>
51 React Native {rnVersion} ({jsEngine}; {uiManager})
52 </Text>
53 </View>
54 <LinearGradient
55 colors={['#ffffff00', '#fff']}
56 locations={[0.5, 1]}
57 style={styles.titleGradient}>
58 <Text style={styles.titleText}>react-native-linear-gradient</Text>
59 </LinearGradient>
60 </ImageBackground>
61 <ScrollView contentInsetAdjustmentBehavior="automatic">
62 <Section title="Simple Gradient">
63 <SimpleGradient />
64 </Section>
65 <Section title="Angle Gradient">
66 <AngleGradient />
67 </Section>
68 <Section title="Animated Gradient">
69 <AnimatedGradient />
70 </Section>
71 <Section title="Gradient Timer">
72 <GradientTimer />
73 </Section>
74 <Section title="Gradient Buttons">
75 <GradientButtons />
76 </Section>
77 </ScrollView>
78 </SafeAreaView>
79 );
80};
81
82const styles = StyleSheet.create({
83 container: {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected