Skip to content

Commit 1726539

Browse files
committed
Move RealmConfig.js
1 parent c9f7650 commit 1726539

File tree

7 files changed

+12
-12
lines changed

7 files changed

+12
-12
lines changed

examples/react-native/__tests__/RealmConfig.js renamed to examples/react-native/__tests__/ts/RealmConfig.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
// :snippet-start: create-realm-context
22
import {createRealmContext} from '@realm/react';
33
// Import all of your models.
4-
import Invoice from './ts/Models/Invoice';
5-
import Business from './ts/Models/Business';
4+
import Invoice from './Models/Invoice';
5+
import Business from './Models/Business';
66
// :remove-start:
7-
import Address from './ts/Models/Address';
8-
import Contact from './ts/Models/Contact';
7+
import Address from './Models/Address';
8+
import Contact from './Models/Contact';
99
// :remove-end:
1010

1111
export const RealmContext = createRealmContext({

examples/react-native/__tests__/ts/realm-database/configure-realm-local.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// :snippet-start: configure-realm
22
import React from 'react';
3-
import {RealmContext} from '../../RealmConfig';
3+
import {RealmContext} from '../RealmConfig';
44
// :remove-start:
55
import {render} from '@testing-library/react-native';
66
import {useApp} from '@realm/react';

examples/react-native/__tests__/ts/realm-database/configure-realm-multiple.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// :snippet-start: two-realm-contexts
22
import React from 'react';
33
import {AppProvider, UserProvider} from '@realm/react';
4-
import {RealmContext} from '../../RealmConfig';
5-
import {SecondRealmContext} from '../../RealmConfig';
4+
import {RealmContext} from '../RealmConfig';
5+
import {SecondRealmContext} from '../RealmConfig';
66
// :remove-start:
77
import {render} from '@testing-library/react-native';
88
import {useApp} from '@realm/react';

examples/react-native/__tests__/ts/realm-database/configure-realm-sync.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// :snippet-start: configure-realm-sync
22
import React from 'react';
33
import {AppProvider, UserProvider} from '@realm/react';
4-
import {RealmContext} from '../../RealmConfig';
4+
import {RealmContext} from '../RealmConfig';
55
// :remove-start:
66
import {render} from '@testing-library/react-native';
77
import {useApp} from '@realm/react';

source/examples/generated/react-native/js/RealmConfig.snippet.create-realm-context.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {createRealmContext} from '@realm/react';
22
// Import all of your models.
3-
import Invoice from './ts/Models/Invoice';
4-
import Business from './ts/Models/Business';
3+
import Invoice from './Models/Invoice';
4+
import Business from './Models/Business';
55

66
export const RealmContext = createRealmContext({
77
// Pass all of your models into the schema value.

source/examples/generated/react-native/ts/configure-realm-local.test.snippet.configure-realm.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from 'react';
2-
import {RealmContext} from '../../RealmConfig';
2+
import {RealmContext} from '../RealmConfig';
33

44
function AppWrapperLocal() {
55
const {RealmProvider} = RealmContext;

source/examples/generated/react-native/ts/configure-realm-sync.test.snippet.configure-realm-sync.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react';
22
import {AppProvider, UserProvider} from '@realm/react';
3-
import {RealmContext} from '../../RealmConfig';
3+
import {RealmContext} from '../RealmConfig';
44

55
function AppWrapperSync() {
66
const {RealmProvider} = RealmContext;

0 commit comments

Comments
 (0)