Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[expo-branch] null is not an object (evaluating RNBranch.STANDARD_EVENT_ADD_TO_CART) in SDK 35 #5920

Closed
davidbiller opened this issue Oct 9, 2019 · 1 comment
Labels

Comments

@davidbiller
Copy link
Contributor

davidbiller commented Oct 9, 2019

Error: null is not an object (evaluating RNBranch.STANDARD_EVENT_ADD_TO_CART)

import Branch, { BranchEvent } from "expo-branch";

and

"expo-branch": "~1.0.2",

in Expo SDK 35.

Just after the import. In iOS Simulator.

So this Error is still/again there in SDK 35 - check #5349 too

tried too:
import Branch, { BranchEvent } from "react-native-branch";
"react-native-branch": "~3.1.1",
But same error.

@davidbiller davidbiller added the bug label Oct 9, 2019
@cruzach
Copy link
Contributor

cruzach commented Oct 9, 2019

As it says in that issue:

nothing has changed when it comes to Expo client — it didn't have Branch and it won't. So, trying to import and/or call any Branch methods in Expo client will raise an error, since RNBranch, i. e. native module, is null in Expo client.

Branch is only available in standalone builds

@cruzach cruzach closed this as completed Oct 9, 2019
@lock lock bot added the outdated label Apr 15, 2020
@lock lock bot locked and limited conversation to collaborators Apr 15, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants