[React Native] Can't connect to Realm Server.
See original GitHub issueHey Guys,
I’ve been trying to get the preview release of 0.15.5-rmp-beta.1
working with my React Native application but running into some trouble.
Would be great to get some help on the issue and could be beneficial to others trying to get it to work.
Here are my steps so far:
-
Downloaded the Realm Object Server for Mac.
-
Launched
start-object-server.command
. -
Created an admin user.
-
Tried to connect and create a Realm with the following:
var realm; Realm.Sync.User.login('http://127.0.0.1:9080/', 'test@one.com', 'MyPassword', (error, user) => { realm = new Realm({ sync: { user: user, url: 'realm://127.0.0.1:9080/~/realm1', }, schema: [MySchema], schemaVersion: 1 }); });
Any guidance on how to get this working would be great.
Thanks!
Josh
Issue Analytics
- State:
- Created 7 years ago
- Comments:14 (6 by maintainers)
Top Results From Across the Web
react-native link fails on realm - Stack Overflow
react -native link fails on realm - Stack Overflow. Stack Overflow for Teams – Start collaborating and sharing organizational knowledge.
Read more >Quick Start with Sync - React Native SDK — Realm - MongoDB
Overview. This page contains information to quickly get Realm Database integrated into your app. If you haven't already, install the Realm React Native...
Read more >Using Hermes - React Native
Once you know where the Metro server is listening, you can connect with Chrome using the following steps: Navigate to chrome://inspect in a ......
Read more >Build an Offline-First React Native Mobile App with Expo and ...
Change the connection method to the Developer Tools Server ; Get a link to our app. (More on this later when we talk...
Read more >Getting started with Realm for React Native | by mbvissers.eth
Note: I have had some issues in the past with installing Realm. This could be because of an outdated version of React Native...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Okay, let me try that and let you know how it goes. Thanks for your help with this.
@kristiandupont Yes I did. I decided to hold off until the official release, which was a few days ago. I then spent this morning giving it another try and it worked liked a charm.
I’ll let you know if I run into trouble again but I’ll close this off for now.
Many Thanks!