Add support for web
See original GitHub issueDescription
I’m using react-native-web to build a RN project for the browser. React-native-device-info tries to call native methods which of course don’t exist in the browser.
Use Case
I’ve started creating a web
folder that simply returns an object with the data/methods that react-native-device-info supports. Most of it is empty since the browser doesn’t have much of the information (the few exceptions include userAgent). deviceinfo.js
checks whether the Platform.OS is web and conditionally requires the web module or the native module.
Would a PR be accepted?
Issue Analytics
- State:
- Created 6 years ago
- Comments:15 (7 by maintainers)
Top Results From Across the Web
Can I use... Support tables for HTML5, CSS3, etc
"Can I use" provides up-to-date browser support tables for support of front-end web technologies on desktop and mobile web browsers.
Read more >Add web support to an existing app - YouTube
Convert your existing app to Flutter Web supported appAdd web support to an ... Add web support to an existing app | Flutter...
Read more >Building a web application with Flutter - Flutter documentation
Add web support to an existing app. This page covers the following steps for getting started with web support: Configure the flutter tool...
Read more >Adding Web Support for Flutter Apps - Medium
Creating a new Flutter Project with web support: 1. Open the Android Studio and create a new Flutter project as follows:.
Read more >CHADD - Improving the lives of people affected by ADHD
CHADD is here to help families like yours. You can be part of the global movement to help families and adults with ADHD....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
0.17.1* 😅
We have an iOS app live, but not open source: https://itunes.apple.com/us/app/onceconnect/id1308143592?ls=1&mt=8
Android will be released eventually. Current priority is a web release. This is a full production app with lots of pieces. Getting it all sorted out is a bit daunting. react-native-device-info is one of a number dependencies that I’ll need to sort out.