1
1
.. _react-native-configure-realm:
2
2
3
- =======================================
3
+ ====================================
4
4
Configure a Realm - React Native SDK
5
- =======================================
5
+ ====================================
6
6
7
7
.. contents:: On this page
8
8
:local:
@@ -21,8 +21,8 @@ All child components of ``RealmProvider`` can access the realm using hooks.
21
21
To learn how to open a realm using Device Sync, refer to
22
22
:ref:`Open a Synced Realm <react-native-open-a-synced-realm>`.
23
23
24
- Create a Context Object
25
- -----------------------
24
+ Create Realm Configuration
25
+ --------------------------
26
26
27
27
By passing a :js-sdk:`Configuration <Realm.html#~Configuration>` object to
28
28
``createRealmContext()``, you create a Context object that contains an open
@@ -35,14 +35,14 @@ used elsewhere.
35
35
:language: javascript
36
36
:caption: RealmConfig.js
37
37
38
- Open a Synced Realm
39
- ~~~~~~~~~~~~~~~~~~~
38
+ Configure a Synced Realm
39
+ ~~~~~~~~~~~~~~~~~~~~~~~~
40
40
41
41
To open a realm that synchronizes data with Atlas using Device Sync,
42
42
refer to :ref:`Open a Synced Realm <react-native-open-a-synced-realm>`.
43
43
44
- Open an In-Memory Realm
45
- ~~~~~~~~~~~~~~~~~~~~~~~
44
+ Configure an In-Memory Realm
45
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
46
46
47
47
To create a realm that runs entirely in memory without being written to a file,
48
48
add ``inMemory: true`` to your :js-sdk:`Realm.Configuration
0 commit comments