@react-navigation/stack#StackNavigationOptions TypeScript Examples

The following examples show how to use @react-navigation/stack#StackNavigationOptions. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: theme.tsx    From sellflow with MIT License 6 votes vote down vote up
headerOptions: StackNavigationOptions = {
  cardStyle: {
    backgroundColor: COLORS.white,
  },
  headerTitleStyle: {
    fontFamily: FONT_FAMILY.MEDIUM,
    fontSize: FONT_SIZE.large,
  },
  headerBackTitleVisible: false,
  headerLeftContainerStyle: {
    marginLeft: 8,
  },
  headerStyle: {
    elevation: 1,
  },
  headerTitleAlign: 'center',
  headerLeft: ({ onPress }) => (
    <IconButton
      icon={CustomTheme.isRTL ? 'chevron-right' : 'chevron-left'}
      color={COLORS.primaryColor}
      size={24}
      onPress={onPress}
    />
  ),
}
Example #2
Source File: NavigationTypings.ts    From react-native-typescript-starter with MIT License 5 votes vote down vote up
ROOT_STACK_OPTIONS: StackNavigationOptions = {
    title: "Starter",
    cardOverlayEnabled: true,
    cardStyleInterpolator: modalStyleInterpolator,
    cardStyle: { backgroundColor: 'transparent' }
}
Example #3
Source File: NavigationTypings.ts    From react-native-typescript-starter with MIT License 5 votes vote down vote up
MODAL_SCREEN_OPTIONS: StackNavigationOptions = {
    headerShown: false
}
Example #4
Source File: FullFeatured.tsx    From react-native-gallery-toolkit with MIT License 5 votes vote down vote up
FullFeatured.options = (): StackNavigationOptions => ({
  header: HeaderPropsScrapper,
});