Skip to content

Commit fe8acfa

Browse files
committed
implement kyle feedback
1 parent add70ad commit fe8acfa

File tree

5 files changed

+13
-142
lines changed

5 files changed

+13
-142
lines changed

examples/react-native/__tests__/ts/app-services/app-provider.test.tsx

Lines changed: 0 additions & 36 deletions
This file was deleted.

examples/react-native/__tests__/ts/app-services/use-app.test.tsx

Lines changed: 0 additions & 42 deletions
This file was deleted.

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

Lines changed: 0 additions & 12 deletions
This file was deleted.

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

Lines changed: 0 additions & 11 deletions
This file was deleted.

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

Lines changed: 13 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@
44
Connect to an Atlas App Services App - React Native SDK
55
=======================================================
66

7+
.. contents:: On this page
8+
:local:
9+
:backlinks: none
10+
:depth: 2
11+
:class: singlecol
12+
713
Overview
814
--------
915

@@ -28,19 +34,9 @@ To set up your App client, pass the App ID string
2834
to the ``id`` prop of the ``AppProvider``.
2935
Wrap any components that need to access the App with the ``AppProvider``.
3036

31-
.. tabs-realm-languages::
32-
33-
.. tab::
34-
:tabid: typescript
35-
36-
.. literalinclude:: /examples/generated/react-native/ts/app-provider.test.snippet.app-provider.tsx
37-
:language: typescript
38-
39-
.. tab::
40-
:tabid: javascript
4137

42-
.. literalinclude:: /examples/generated/react-native/js/app-provider.test.snippet.app-provider.jsx
43-
:language: javascript
38+
.. literalinclude:: /examples/generated/react-native/js/app-provider.test.snippet.app-provider.jsx
39+
:language: javascript
4440

4541
.. _react-native-app-retrieve-client:
4642

@@ -51,19 +47,8 @@ All components wrapped within an ``AppProvider`` can access the :js-sdk:`App <Re
5147
client with the ``useApp()`` hook. Using the App, you can authenticate users
5248
and access App Services.
5349

54-
.. tabs-realm-languages::
55-
56-
.. tab::
57-
:tabid: typescript
58-
59-
.. literalinclude:: /examples/generated/react-native/ts/use-app.test.snippet.use-app.tsx
60-
:language: typescript
61-
62-
.. tab::
63-
:tabid: javascript
64-
65-
.. literalinclude:: /examples/generated/react-native/js/use-app.test.snippet.use-app.jsx
66-
:language: javascript
50+
.. literalinclude:: /examples/generated/react-native/js/use-app.test.snippet.use-app.jsx
51+
:language: javascript
6752

6853
.. _react-native-retrieve-client-outside-provider:
6954

@@ -74,21 +59,8 @@ To retrieve an instance of the App Client from anywhere in your application,
7459
instantiate a new instance of :js-sdk:`Realm.App() <Realm.App.html>`
7560
from the ``realm`` package, then pass in your ``App ID``.
7661

62+
.. code-block:: javascript
7763

78-
.. tabs-realm-languages::
79-
80-
.. tab::
81-
:tabid: typescript
82-
83-
.. code-block:: typescript
84-
import Realm from "realm";
85-
86-
const app = new Realm.App("<Your App ID>");
87-
88-
.. tab::
89-
:tabid: javascript
90-
91-
.. code-block:: javascript
92-
import Realm from "realm";
64+
import Realm from "realm";
9365

94-
const app = Realm.App.getApp("<Your App ID>");
66+
const app = Realm.App.getApp("<Your App ID>");

0 commit comments

Comments
 (0)