sandarshnaroju / react-native-nano

Build mobile apps in JSON
https://nanoapp.dev
87 stars 5 forks source link

feat: add props support to RNNano for react-navigation #12

Closed deepakkumardk closed 8 months ago

deepakkumardk commented 8 months ago

Add props support in RNNano to incorporate NavigationContanier & StackNavigator rest props.

example -

<RNNano
      screens={AllScreens}
      customModules={customModules}
      props={{
        navigationContainerProps: {
          //
        },
        stackNavigatorProps: {
          screenOptions: {
            headerStyle: {
              backgroundColor: 'red',
            },
            headerTintColor: 'white',
            headerTitleStyle: {
              fontWeight: 'bold',
            },
            headerTitleAlign: 'center',
          },
        },
      }}
    />