Skip to content

Commit e9fccc4

Browse files
mongodbentakameyer
andcommitted
Apply suggestions from code review
Co-authored-by: Andrew Meyer <[email protected]>
1 parent 347fd88 commit e9fccc4

File tree

4 files changed

+5
-2
lines changed

4 files changed

+5
-2
lines changed

examples/react-native/__tests__/js/app-services/app-provider.test.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@
22
import React from 'react';
33
import {AppProvider} from '@realm/react';
44
// :remove-start:
5-
import 'react-native';
65
import {render} from '@testing-library/react-native';
76
import {useApp} from '@realm/react';
87
import {View, Text} from 'react-native';
8+
99
const APP_ID = 'example-testers-kvjdy';
10+
1011
function MyApp() {
1112
const app = useApp();
1213
if (app.id !== APP_ID) {

source/examples/generated/react-native/js/app-provider.test.snippet.app-provider.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import React from 'react';
22
import {AppProvider} from '@realm/react';
3+
34
function AppWrapper() {
45
return (
56
<View>

source/examples/generated/react-native/ts/app-provider.test.snippet.app-provider.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import React from 'react';
22
import {AppProvider} from '@realm/react';
3+
34
function AppWrapper() {
45
return (
56
<View>

source/sdk/react-native/app-services/connect-to-app-services-app.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ call :js-sdk:`Realm.App.getApp() <Realm.App.html#getApp>` and pass in your ``App
8080

8181
.. code-block:: typescript
8282

83-
const app = Realm.App.getApp("<Your App ID>");
83+
const app = new Realm.App("<Your App ID>");
8484

8585
.. tab::
8686
:tabid: javascript

0 commit comments

Comments
 (0)