From 777f62ff35de62fc22dc9a77ebb1e76b0d97e2dc Mon Sep 17 00:00:00 2001 From: cbullinger Date: Wed, 8 May 2024 14:10:53 -0400 Subject: [PATCH] revert RN updates --- source/sdk/react-native/install.txt | 85 +++++------------------------ 1 file changed, 14 insertions(+), 71 deletions(-) diff --git a/source/sdk/react-native/install.txt b/source/sdk/react-native/install.txt index 699ecb4b41..94075670a0 100644 --- a/source/sdk/react-native/install.txt +++ b/source/sdk/react-native/install.txt @@ -16,21 +16,8 @@ and TypeScript languages. React Native enables you to build cross-platform iOS and Android apps with a single codebase using the `React `__ framework. -Use the SDK with Expo ---------------------- - -You can use the React Native SDK with a bare React Native app or Expo. This page -and the React Native SDK documentation generally assume that you're using a bare -React Native app and not Expo. - -If you want to use the React Native SDK with Expo, check out the :ref:`Bootstrap -with Expo ` page. - -Install the SDK in a Bare React Native App ------------------------------------------- - Prerequisites -~~~~~~~~~~~~~ +------------- Before getting started, ensure your development environment meets the following prerequisites. These are required for the latest version @@ -49,8 +36,18 @@ of the React Native SDK: :doc:`build your application when using Mac Catalyst `. -Install the SDK -~~~~~~~~~~~~~~~ +Use the SDK with Expo +~~~~~~~~~~~~~~~~~~~~~ + +You can use the React Native SDK with a bare React Native app or Expo. This page +and the React Native SDK documentation generally assume that you're using a bare +React Native app and not Expo. + +If you want to use the React Native SDK with Expo, check out the :ref:`Bootstrap +with Expo ` page. + +Install the SDK in a Bare React Native App +------------------------------------------ Select the tab below that corresponds to your React Native version. Follow the steps to create a React Native project @@ -277,7 +274,7 @@ and add the React Native SDK to it. .. include:: /includes/react-native-run-the-app.rst Import the SDK -~~~~~~~~~~~~~~ +-------------- Add the following line to the top of your source files where you want to use the SDK: @@ -285,57 +282,3 @@ you want to use the SDK: .. code-block:: typescript import Realm from "realm"; - -.. _react-native-apple-privacy-manifest: - -Apple Privacy Manifest ----------------------- - -.. versionadded:: 2.2.0 - -Apple requires any apps or third-party SDKs that use *required reasons APIs* -to provide a privacy manifest containing details about their data collection -and use practices. The bundled manifest file must be included when submitting -new apps or app updates to the Apple App Store. For more details about these -requirements, refer to -:apple:`Upcoming third-party SDK requirements ` -on the Apple Developer website. - -Starting in Flutter SDK version 2.2.0, the SDK ships with a privacy manifest for -``iOS`` and ``macOS`` environments, contained in the ``realm`` package. Both -privacy manifests contain Apple's required API disclosures and the reasons for -using those APIs. - -You can view these privacy manifests in the SDK package or directly in the -``realm-dart`` GitHub repository: - -- ``iOS``: - `https://github.com/realm/realm-dart/blob/main/packages/realm/ios/Resources/PrivacyInfo.xcprivacy - `__ -- ``macOS``: - `https://github.com/realm/realm-dart/blob/main/packages/realm/macos/Resources/PrivacyInfo.xcprivacy - `__ - -The Flutter SDK does *not*: - -- Include analytics code in builds for the App Store. -- Log into Atlas on its own behalf. - -.. important:: Additional Disclosures May Be Required for App Services - - The Flutter SDK privacy manifest does *not* include disclosures for App - Services APIs. - -If your app uses any Atlas App Services functionality, such as user -authentication or Device Sync, you may need to provide additional disclosures -that detail your data collection and use practices when using these APIs. -For example, if your app -:ref:`initializes an App client ` to: - -- :ref:`Call an Atlas Function ` -- :ref:`Authenticate and manage users ` -- :ref:`Open a synced database ` - -For more information, refer to Apple's -:apple:`Privacy Manifest Files ` -documentation.