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.

does not work with CRNA / Expo

See original GitHub issue

Hi, any idea why I can’t seem to import your module with a fresh CRNA install?

import SInfo from 'react-native-sensitive-info'

console.log('SInfo: ', SInfo)

console output: SInfo: undefined

I use:

"dependencies": {
    "expo": "^21.0.0",
    "react": "16.0.0-alpha.12",
    "react-native": "^0.48.4",
    "react-native-sensitive-info": "^5.1.0"
  }

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
Palisandcommented, Oct 5, 2017

@mCodex @Morriz

You cannot use any modules that require linking (i.e. native modules) with expo. This is not an issue with react-native-sensitive-info. You must either detach to ExpoKit or eject completely. See this.

Please note that Expo SDK 21 already has a SecureStore.

1reaction
Morrizcommented, Sep 28, 2017

I did that already, but to no avail. It would be awesome if your module would work with CRNA out of the box, but you probably have to do some tweaking. I would reach out to the CRNA ppl if I were you.

On Sep 28, 2017, at 13:42, Victor notifications@github.com wrote:

Hi @Morriz! Did you get this behavior on Android or iOS? Usually when a module with native code returns undefined it’s because it was not linked properly with the native projects, you can try running react-native link react-native-sensitive-info again or linking it manually. I’m not very familiar with expo though, not sure how it handles external native dependencies.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Is there any advantage of using Expo or CRNA when must ...
One possible advantage of using Expo even after ejecting is that after ejecting, you can opt to have a native project linked to...
Read more >
React-Native App using Expo CRNA and Typescript - Part 1
Open Expo app and select 'Scan QR code' option. ... (If tsc command is failing for you, with something like tsc command not...
Read more >
Why use CRNA over Expo? - #4 by dikaiosune - Expo Development ...
CRNA's biggest advantage for new users is that it's installation is very fast and does not require an Expo account. In the spirit...
Read more >
CRNA, Expo or react-native init for your next project
While not having to open Xcode and run the project from there is nice, it's not the idea of using CRNA we are...
Read more >
Running expo and raw react-native together - InApps
The devs who don't need to work on the native modules will never need to touch the ios and android builds with this....
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