This repository has been archived by the owner on Apr 12, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
98084a4
commit c05481c
Showing
81 changed files
with
1 addition
and
5,394 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1 @@ | ||
## Getting Started | ||
|
||
1. Open **ios/ReactNativeCouchbaseLiteExample.xcodeproj** in Xcode or **android/build.gradle** in Android Studio. | ||
2. Run `npm install` to install React Native dependencies. | ||
3. Run `npm install ./../` to install react-native-couchbase-lite from the parent directory. | ||
4. Build and run. You should see a list of groceries which is a pre-built database. | ||
|
||
<img src="https://cl.ly/2t31350o0s3x/Simulator%20Screen%20Shot%2030%20Nov%202016,%2014.08.20.png" width="25%" /> | ||
<img src="https://cl.ly/163J0w0Z2w3q/sdk_phone_x86MASTER11302016140903.png" width="25%" /> | ||
|
||
5. Start Sync Gateway. | ||
|
||
```bash | ||
$ ~/Downloads/couchbase-sync-gateway/bin/sync_gateway sync-gateway-config.json | ||
``` | ||
|
||
## Steps to add react-native-couchbase-lite from source | ||
|
||
You may prefer to clone this repo and use it in your project instead of using what is published on npm. The steps below describe how to do that. | ||
|
||
1. Create a new React Native project. | ||
|
||
```bash | ||
# Update react-native-cli | ||
npm install -g react-native-cli | ||
# Create a new project | ||
react-native init MyApp | ||
# Start the RN server | ||
cd MyApp | ||
react-native start | ||
``` | ||
|
||
2. Install the react-native-couchbase-mobile module relatively to the root of this repo. | ||
|
||
```bash | ||
npm install ./../ | ||
``` | ||
|
||
3. Link it with your **MyApp** project. | ||
|
||
```bash | ||
rnpm link react-native-couchbase-lite | ||
``` | ||
|
||
4. Follow [those steps in the README](https://github.com/couchbaselabs/react-native-couchbase-lite#ios) to add the remaining dependencies for iOS and Android. | ||
[Moved here](https://github.com/couchbaselabs/mobile-training-todo/tree/master/react-native) |
12 changes: 0 additions & 12 deletions
12
ReactNativeCouchbaseLiteExample/__tests__/index.android.js
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.