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.

TypeError: Cannot read property 'FACEBOOK' of null

See original GitHub issue

Steps to reproduce

  1. Import react-native-share@3.6.0

Expected behaviour

I should be able to actually use the library.

Actual behaviour

I get the following error:

TypeError: Cannot read property 'FACEBOOK' of null, js engine: hermes

Environment

  • React Native version: 0.63.0-rc.1
  • React Native platform + platform version: Android 9.0

react-native-share

Version: 3.6.0

Additional information:

Related to #360

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
xxczakicommented, Jul 6, 2020

@mikehardy You were right, I did not set up everything correctly 😆

0reactions
gshoanganhcommented, Nov 24, 2022

@xxczaki i have the same problem, what’s was wrong with your set up?

please run full: step 01: yarn add react-native-share or npm install react-native-share step 02: npx pod-install or cd ios && pod install. (You can skip this step, if you are using this on Android).

Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeError: Cannot read property 'FACEBOOK' of null #817
Actual behaviour I get the following error: TypeError: Cannot read property 'FACEBOOK' of null, js engine: hermes Environ...
Read more >
Cannot read property 'FACEBOOK' of undefined in expo React ...
I am creating an Image share option in expo(only for android in react native) using the react-native-share library, but i am getting the ......
Read more >
typeerror: cannot read properties of null (reading 'default')
The TypeError: Cannot read property 'length' of null occurs if you are trying find the length of an object expecting the type of...
Read more >
typeerror can not read property x of null - YouTube
Join this channel to get access to perks:https://www.youtube.com/channel/UCoSpmr2KNOxjwE_B9ynUmig/joinMy GearCamera ...
Read more >
facebook login with react native Error Cannot read property ...
Are you using Android or iOS? Chances are that you haven't properly linked the Facebook SDK for the mobile platform that you're using....
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