Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save fturkyilmaz/c35f62d54df7c49a328cd397b24cad1e to your computer and use it in GitHub Desktop.
Save fturkyilmaz/c35f62d54df7c49a328cd397b24cad1e to your computer and use it in GitHub Desktop.
React Native Large Header
const Stack = createNativeStackNavigator<RootStackParamList>();
function RootNavigator() {
return (
<Stack.Navigator>
<Stack.Screen
name="Home"
component={TabOneScreen}
options={{ headerLargeTitle: true, headerTransparent: true }}
/>
</Stack.Navigator>
);
}
export default function Appcreen({
navigation,
}: RootTabScreenProps<"App">) {
return (
<ScrollView
style={styles.container}
contentInsetAdjustmentBehavior="automatic">
<SafeAreaView>
<View style={styles.poweredByContainer}>
<Image
source={require("../assets/images/me.png")}
style={styles.sahaIcon}
resizeMode="contain"
/>
<Image
source={require("../assets/images/sahabt-icon.png")}
style={styles.chaineristIcon}
resizeMode="contain"
/>
<Text style={styles.poweredByText}>Furkan Türkyılmaz - Linkedin</Text>
<Text style={styles.poweredByText}>
https://github.com/fturkyilmaz
</Text>
</View>
</SafeAreaView>
</ScrollView>
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment