You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -47,7 +47,7 @@ If you are using GitHub pages for hosting, this command is a convenient way to b
47
47
We truly appreciate your interest in this project!
48
48
This project is **community-maintained**, which means it's **not officially supported** by our support team.
49
49
50
-
If you need help, have found a bug, or want to contribute improvements, the best place to do that is right here - by [opening a GitHub issue](https://github.com/Couchbase-Ecosystem/cbl-reactnative-docs/issues).
50
+
If you need help, have found a bug, or want to contribute improvements, the best place to do that is right here - by [opening a GitHub issue](https://github.com/couchbase/cbl-reactnative-docs/issues).
51
51
Our support portal is unable to assist with requests related to this project, so we kindly ask that all inquiries stay within GitHub.
52
52
53
53
Your collaboration helps us all move forward together - thank you!
Copy file name to clipboardExpand all lines: docs/Guides/Migration/v1.1.md
+22-2Lines changed: 22 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ sidebar_position: 2
5
5
6
6
# Version 1.1
7
7
8
-
> Description - _Quick reference for customer-facing changes in cbl-reactnative version 1.1_
8
+
> Description - _Quick reference for customer-facing changes in @couchbase/couchbase-lite-react-native version 1.1_
9
9
> Related Content - [Release Notes](../../ProductNotes/release-notes.md) | [Using Logs](../../Troubleshooting/using-logs.md)
10
10
11
11
## At a Glance
@@ -16,6 +16,25 @@ Version 1.1 is focused on React Native New Architecture support and better troub
16
16
2.**Improved file logging** - React Native wrapper diagnostics can be written to file and custom log sinks.
17
17
3.**LogSinks.write()** - application code can write messages into configured Couchbase Lite log sinks.
18
18
4.**Reliability fixes** - listener cleanup, document expiration, and conflict-aware deletes are improved.
19
+
5.**Official npm package** - published as `@couchbase/couchbase-lite-react-native`, replacing the legacy `cbl-reactnative` package.
20
+
21
+
## NPM Package Rename
22
+
23
+
Version 1.1 is published on npm as [`@couchbase/couchbase-lite-react-native`](https://www.npmjs.com/package/@couchbase/couchbase-lite-react-native). The legacy unscoped package `cbl-reactnative` (1.0.1 and earlier) is superseded. New installs and upgrades should use the scoped package.
24
+
25
+
| What to update | Before (`cbl-reactnative`) | After (`@couchbase/couchbase-lite-react-native`) |
Copy file name to clipboardExpand all lines: docs/ProductNotes/compatibility.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ sidebar_position: 2
9
9
Supported iOS and Android versions are dependent on React Native. See the [React Native Documentation](https://github.com/reactwg/react-native-releases/blob/main/docs/support.md) documentation for more information.
10
10
:::
11
11
12
-
The cbl-reactnative library is built against Couchbase Lite Enterprise for iOS and Android. Version 1.1 uses Couchbase Lite Android Enterprise 3.3.3 and Couchbase Lite Swift Enterprise 3.3.3.
12
+
The @couchbase/couchbase-lite-react-native library is built against Couchbase Lite Enterprise for iOS and Android. Version 1.1 uses Couchbase Lite Android Enterprise 3.3.3 and Couchbase Lite Swift Enterprise 3.3.3.
13
13
14
14
Version 1.1 supports [React Native New Architecture](https://reactnative.dev/architecture/overview) through TurboModules. Apps should use React Native 0.76.3 or higher and enable New Architecture for the TurboModule path.
Copy file name to clipboardExpand all lines: docs/StartHere/example-apps.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ Several example apps are available for developers to review. These apps are des
9
9
10
10
## React Native Module Example App
11
11
12
-
The cbl-reactnative module has an example app in the repository's [expo-example](https://github.com/couchbase/couchbase-lite-react-native/tree/main/expo-example) folder. This example app is designed to show off all the various APIs and is used to test the Native Module during the development process.
12
+
The @couchbase/couchbase-lite-react-native module has an example app in the repository's [expo-example](https://github.com/couchbase/couchbase-lite-react-native/tree/main/expo-example) folder. This example app is designed to show off all the various APIs and is used to test the Native Module during the development process.
Copy file name to clipboardExpand all lines: docs/StartHere/install.md
+14-8Lines changed: 14 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ This Native Module is currently under active development. If you find problems,
9
9
:::
10
10
11
11
:::note
12
-
The version of this Native Module is based on supporting Couchbase Lite Enterprise for iOS and Android. This Native Module is not compatible with Couchbase Lite Community Edition. A [license](https://www.couchbase.com/pricing/) is required to use Couchbase Lite Enterprise edition.
12
+
The version of this Native Module is based on supporting Couchbase Lite Enterprise for iOS and Android. A [license](https://www.couchbase.com/pricing/) is required to use Couchbase Lite Enterprise edition.
13
13
:::
14
14
15
15
## Get Started
@@ -22,12 +22,18 @@ The installation for the Native Module is provided in two sections: one section
22
22
23
23
### React Native Based Apps
24
24
25
-
To use the Couchbase Lite React Native Native Module in a standard React Native app, you will need to install the npm package. From the root of your applications project directory (the directory containing your `package.json` file), run the following command:
25
+
To use the Couchbase Lite React Native Native Module in a standard React Native app, you will need to install the npm package[@couchbase/couchbase-lite-react-native](https://www.npmjs.com/package/@couchbase/couchbase-lite-react-native). From the root of your applications project directory (the directory containing your `package.json` file), run one of the following commands:
New projects should install the scoped package above. Upgrading from the legacy `cbl-reactnative` package (1.0.1 and earlier)? See the [Version 1.1 Migration Guide](../Guides/Migration/v1.1.md#npm-package-rename).
35
+
:::
36
+
31
37
Once installed, you will want to build each native project (iOS and Android) to link the native module to your project.
32
38
33
39
#### iOS
@@ -47,14 +53,14 @@ For React Native New Architecture builds, make sure `newArchEnabled=true` is set
47
53
If your app needs manual Gradle wiring, update the Android Gradle file to include the native module. This can be done by editing the build.gradle file in the android directory of your React native app and adding the following line below the apply plugin line for the com.facebook.react.rootproject:
Now you can install the gradle dependencies and build the Android project:
@@ -85,7 +91,7 @@ npm run start
85
91
86
92
For developers using Expo, you must make sure you have the dev-client installed in your app. Expo Go is not compatible with custom React Native Native Module. To install the dev-client, review the [Expo documentation](https://docs.expo.dev/develop/development-builds/introduction/#what-is-expo-dev-client) along with the [Local App develompent documentation](https://docs.expo.dev/guides/local-app-development/). These directions assume dev-client is setup and you can build locally your app on iOS and Android.
87
93
88
-
The expo environment dynamically builds both the Cocoapod file for iOS and Gradle file for Android. Because of this you will need to register the cbl-reactnative package with the expo environment via the Expo plugin api.
94
+
The expo environment dynamically builds both the Cocoapod file for iOS and Gradle file for Android. Because of this you will need to register the @couchbase/couchbase-lite-react-native package with the expo environment via the Expo plugin api.
89
95
90
96
This can be done by creating a new file in the root of your project called `plugin.config.js` and adding the following code:
0 commit comments