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.

react native support

See original GitHub issue

Currently if you run this in a react native project you get the following error:

TypeError: undefined is not an object (evaluating 'os.indexOf')

I’m guessing that the check to see if this is running in a browser is passing even though react native should probably be treated like a “server” like environment.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:1
  • Comments:18 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
johnsoncwbcommented, May 5, 2022

Hello folks, i’m trying to add a GA4 plugin for react-native but i receiving this error:

Screen Shot 2022-05-04 at 21 48 46

do you guys have plans to add extra verifications to work in mobile apps?

1reaction
DavidWellscommented, May 28, 2020

@jgcmarins Do cookies work in React Native? If yes, then they are already in use there 😃

Under the hood, analytics tries to use these 3 mechanisms in this order:

  1. localStorage
  2. cookies
  3. global window object

https://github.com/DavidWells/analytics/blob/master/packages/analytics-util-storage/src/index.js

It’s possible that we could expose this as an option where any method could be used like AsyncStorage.

I’m looking for React Native experts to help out here as I have little experience working with it myself. 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Where to get help - React Native
If you need help with your React Native app, the right place to ...
Read more >
Where To Get Support - React
Where To Get Support. React has a community of millions of developers. On this page we've listed some React-related communities that you can...
Read more >
react-native/SUPPORT.md at main - GitHub
I have a question or need help with my React Native app. If you have a coding question related to React Native, it...
Read more >
React Native Experts to Help, Mentor, Review Code & More
Find a freelance React Native expert for help with reviewing code, mentorship, tutoring, and other React Native help you might need.
Read more >
React Native - Wikipedia
React Native is an open-source UI software framework created by Meta Platforms, Inc. It is used to develop applications for Android, Android TV,...
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