Skip to content

Commit ea5a9dc

Browse files
committed
added configuration code examples
1 parent dc7c2f1 commit ea5a9dc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

source/frameworks/react/providers-hooks.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,8 @@ to configure a realm or exposing more than one realm, refer to their respective
145145
You *must* nest the Providers and app components as shown below to ensure each component
146146
has access to its required context:
147147

148-
[Code example here]
148+
.. literalinclude:: /examples/generated/react-native/ts/configure-realm-sync.test.snippet.configure-realm-sync-full.tsx
149+
:language: javascript
149150

150151
.. tab:: Configure realm without sync
151152
:tabid: configure-non-sync-realm
@@ -163,7 +164,8 @@ to configure a realm or exposing more than one realm, refer to their respective
163164
Once your ``RealmProvider`` has been configured, nest your app components within it to
164165
give them access to the realm opened.
165166

166-
[code example - unsynced]
167+
.. literalinclude:: /examples/generated/react-native/ts/configure-realm-local.test.snippet.configure-realm.tsx
168+
:language: typescript
167169

168170

169171
Working with Providers using Hooks

0 commit comments

Comments
 (0)