Open hieuhani opened 5 years ago
Should we use (typeof window) ? 'web' : 'native'?
We can try this API.
https://github.com/necolas/react-native-web/blob/8ce5750d3437d1caa3d74a74a3625c70c54b66ab/packages/react-native-web/src/exports/Platform/index.js#L12
They just set the OS to 'web'. Our main purpose is creating a UI kit that works on both web and native app without configuration
Should we use (typeof window) ? 'web' : 'native'?