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
{{ message }}
This repository was archived by the owner on Oct 29, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+17-7Lines changed: 17 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,13 +18,23 @@ Build instructions
18
18
19
19
### Prerequisites
20
20
21
-
This SDK requires that you have [`npm`](https://www.npmjs.com/) and [`react-native-cli`](https://www.npmjs.com/package/react-native-cli) installed in order to develop with it.
21
+
Follow the [React Native development environment setup guide](https://reactnative.dev/docs/environment-setup) to install all required tools for contributing to the project.
22
22
23
-
### Building and running
23
+
### Building and testing
24
24
25
-
You can modify and verify changes by developing within the LaunchDarkly React Native SDK sample application (`hello-react-native`).
25
+
First, install the dependencies by running:
26
+
```
27
+
npm install
28
+
```
26
29
27
-
1. Clone and setup the [`hello-react-native`](https://github.com/launchdarkly/hello-react-native) repository.
28
-
2. In your `hello-react-native` directory, copy your `react-native-client-sdk` directory into `node_modules` as `launchdarkly-react-native-client-sdk`. Alternatively, you can use [wml](https://github.com/wix/wml) to monitor and copy files.
29
-
3. Launch your emulator (`emulator -avd <NAME>` for Android) or connect your device.
30
-
4. Test your changes in `hello-react-native` by running either `react-native run-ios` or `react-native run-android` depending on your desired runtime environment.
30
+
To run tests of the JavaScript portion of the implementation:
31
+
```
32
+
npm test
33
+
```
34
+
35
+
To validate the TypeScript module definition, run:
36
+
```
37
+
npm run check-typescript
38
+
```
39
+
40
+
Testing the native module implementation must be done by integrating the SDK into an application, such as one created with `npx react-native init`.
Copy file name to clipboardExpand all lines: README.md
+2-6Lines changed: 2 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,13 +14,9 @@ LaunchDarkly overview
14
14
Supported versions
15
15
-------------------------
16
16
17
-
This SDK is currently compatible with React Native 0.63.x - 0.64.x and Xcode 12 and is tested in Android 30 and iOS 14. Earlier versions of this SDK are compatible with prior versions of React Native, Android, and iOS.
17
+
This SDK is currently compatible with React Native versions `>=0.64 <0.68`, the minimum iOS deployment target is `10.0`, and the minimum Android SDK version is `21`. Builds are tested with XCode 12.2+.
For React Native `0.63.x` support, use the latest [`5.1.x` release](https://github.com/launchdarkly/react-native-client-sdk/releases/tag/5.1.1).
0 commit comments