Permalink
Browse files

Merge pull request #240 from cesargdm/patch-3

Update Installation.md
  • Loading branch information...
radex committed Feb 8, 2019
2 parents 7f2acce + e46b6dc commit defc2084a361e27cc12a64e90eaebd2d0729efb6
Showing with 6 additions and 7 deletions.
  1. +6 −7 docs/Installation.md
@@ -26,12 +26,16 @@ yarn add @nozbe/watermelondb
### iOS (React Native)

1. Set up Babel config in your project — see instructions above
2. Link WatermelonDB's native library with the Xcode project:
2. Add Swift support to your Xcode project:
- Open `ios/YourAppName.xcodeproj` in Xcode
- Right-click on **Your App Name** in the Project Navigator on the left, and click **New File…**
- Create a single empty `Swift` file to the project (make sure that **Your App Name** target is selected when adding), and when Xcode asks, press **Create Bridging Header** and **do not remove `Swift`** file then.
3. Link WatermelonDB's native library with the Xcode project:

**Automatically**

```bash
react-native link
react-native link @nozbe/watermelondb
```

**Or manually**
@@ -43,11 +47,6 @@ yarn add @nozbe/watermelondb

For more information about linking libraries manually, [see React Native documentation](https://facebook.github.io/react-native/docs/linking-libraries-ios).

3. If you get linker errors when building, you need to add Swift support to the project:
- Open `ios/YourAppName.xcodeproj` in Xcode
- Right-click on **Your App Name** in the Project Navigator on the left, and click **New File…**
- Create a single empty `Swift` file to the project (make sure that **Your App Name** target is selected when adding), and when Xcode asks, press **Create Bridging Header** and **do not remove `Swift`** file then.

Note that Xcode 9.4 and a deployment target of at least iOS 9.0 is required (although Xcode 10 and iOS 11.0 are recommended).

### Android (React Native)

0 comments on commit defc208

Please sign in to comment.