This is hopefully a temporary workaround to enable Expo-only users to use tamagui-typescript-plugin
-
Add
@tamagui/static
to your projectyarn add @tamagui/static
-
Create a script
generate-tamagui-json.js
(fill in with your settings if needed)
// generate-tamagui-json.js
const { loadTamagui } = require('@tamagui/static');
loadTamagui({
config: 'tamagui.config.ts',
components: ['tamagui'],
});
- Execute
node generate-tamagui-json.js
to generate.tamagui/tamagui.config.json
in your Expo project folder.