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

TypeError: null is not an object (evaluating '..NearbyConnection.endpoints') #5

Open
staminna opened this issue Jan 31, 2020 · 0 comments

Comments

@staminna
Copy link

staminna commented Jan 31, 2020

Hi, butchmarshall

I tried to run your example into more recent google nearby. I spent a couple of days to tackle this and updated most of the Gradle and SDK versions to the most recent versions and it is building the app successfully except for this runtime error. I am using "react-native": "0.61.5".

Nearby_issue

renderApplication.js (this file is part of React-Native and hasn't been modified in any way)

Screenshot 2020-02-02 20 58 45

index.js

class NearbyConnection {
	// Get all the endpoints
	static endpoints() {
		return NativeModules.NearbyConnection.endpoints();  // <- issue is here
	}

App.js

componentWillMount() {
   Nearby.endpoints().then(endpoints => {
     console.log('endpoints', endpoints);
   });
 }

Could you please take a quick look and point me in the right direction? Thanks!

my fork is in https://github.com/staminna/react-native-google-nearby-connection

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant