Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
juliandramirez committed May 2, 2023
1 parent 7551c21 commit a6b15b8
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ yarn add react-native-user-identity
cd ios
pod install
```
**3. Configure swift support for your iOS project**
**3. (OPTIONAL STEP: REQUIRED FOR OLD DEPENDENCY VERSIONS AND SDKs) Configure swift support for your iOS project**

This configures your iOS project to use the module correctly since the library contains swift code (see the [official react native documentation](https://reactnative.dev/docs/native-modules-ios.html#exporting-swift) for more information)

Expand Down Expand Up @@ -77,11 +77,12 @@ Nothing to configure.

![alt text](https://raw.githubusercontent.com/juliandramirez/react-native-user-identity/master/docs/img/xcode-cloudkit.png)

3. Enable the cloudkit option, add a container and name it **exactly as the bundle identifier of the application**:
3. Enable the CloudKit option of the iCloud capability

4. (OPTIONAL STEP: REQUIRED FOR OLD IDE CONFIGURATIONS) Add a container and name it **exactly as the bundle identifier of the application**:

![alt text](https://raw.githubusercontent.com/juliandramirez/react-native-user-identity/master/docs/img/xcode-cloudcontainer.png)

4. Verify the configuration:

**Verify all of the following:**
* The format of the container name is iCloud.$(PRODUCT_BUNDLE_IDENTIFIER)
Expand Down Expand Up @@ -231,4 +232,4 @@ if (uid != null) {
const tokenResponse = await functions().httpsCallable('tokenFromUID')({ uid })
const userCredential = await auth().signInWithCustomToken(tokenResponse.data)
}
```
```

0 comments on commit a6b15b8

Please sign in to comment.