question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add support for web

See original GitHub issue

Description

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:closed
  • Created 6 years ago
  • Comments:15 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
machourcommented, Feb 26, 2018

0.17.1* 😅

1reaction
peacechencommented, Feb 12, 2018

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found