The example project contains the following:
Theme.interface
for defining the ThemeDefaultLight.theme
andDefaultDark.theme
as Theme variationsTheme.context
for poviding and managing the ThemeThemeAwareObject.hook
for reusing the creation logic of reactive Style objectsCard.component
for consuming and updating the ThemeRenderCounter.component
for counting the number of renders
Install dependencies:
npm install
Run Android:
npm run android
Run iOS:
npm run ios