Skip to content

Commit b95de78

Browse files
committed
update examples to TS only
1 parent fe8acfa commit b95de78

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ to the ``id`` prop of the ``AppProvider``.
3535
Wrap any components that need to access the App with the ``AppProvider``.
3636

3737

38-
.. literalinclude:: /examples/generated/react-native/js/app-provider.test.snippet.app-provider.jsx
39-
:language: javascript
38+
.. literalinclude:: /examples/generated/react-native/ts/app-provider.test.snippet.app-provider.tsx
39+
:language: typescript
4040

4141
.. _react-native-app-retrieve-client:
4242

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

50-
.. literalinclude:: /examples/generated/react-native/js/use-app.test.snippet.use-app.jsx
51-
:language: javascript
50+
.. literalinclude:: /examples/generated/react-native/ts/use-app.test.snippet.use-app.tsx
51+
:language: typescript
5252

5353
.. _react-native-retrieve-client-outside-provider:
5454

@@ -59,7 +59,7 @@ To retrieve an instance of the App Client from anywhere in your application,
5959
instantiate a new instance of :js-sdk:`Realm.App() <Realm.App.html>`
6060
from the ``realm`` package, then pass in your ``App ID``.
6161

62-
.. code-block:: javascript
62+
.. code-block:: typescript
6363

6464
import Realm from "realm";
6565

0 commit comments

Comments
 (0)