Donate. I desperately need donations to survive due to my health

Get paid by answering surveys Click here

Click here to donate

Remote/Work from Home jobs

Run React Native on Web

I have a react native app that uses naitve (react-native-get-sms) and non-native (react-navigation, react-native-elements, ...) modules, How I can run this app on web?

I know I can't run native modules on the web, but how I can run only non-naitve modules on web with the minimum changes in code?

one approach is to use react-native-web but its modules are limited and cant compile my native modules.

for example is it possible to use if..else states for not import native modules when it is running on the web?

Comments