()
| 30 | }; |
| 31 | |
| 32 | const 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 | |
| 82 | const styles = StyleSheet.create({ |
| 83 | container: { |
nothing calls this directly
no outgoing calls
no test coverage detected