GenesisModulesProvider
Pass the optional native modules the app has installed. Nested providers merge: an inner one adds to or replaces what an outer one gave. Define the `modules` object once at module scope (as the starter's `src/lib/native-modules.ts` does): a new inline object on every render re-renders every component that reads it.
packages/ui-native/src/native-modules.tsx
@marktiderman/genesis-ui-nativeimport { GenesisModulesProvider } from "@marktiderman/genesis-ui-native";react-docgen-typescript.GenesisModulesProvider
Pass the optional native modules the app has installed. Nested providers merge: an inner one adds to or replaces what an outer one gave. Define the `modules` object once at module scope (as the starter's `src/lib/native-modules.ts` does): a new inline object on every render re-renders every component that reads it.
| Prop | Type | Default | Description |
|---|---|---|---|
| modules* | GenesisModules | — |
useGenesisModules
The modules given to the nearest `GenesisModulesProvider`; `{}` without one.
No declared props.