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
Peer dependencies were updated to identify more recent versions of React Native as being compatible, and removed React Native for Windows entirely as a peer dependency.
Additional updates include:
1. Update package description
2. Update author and contributor details in `package.json`
3. Updates to project README file
1. In XCode, in the project navigator, right click `Libraries` ➜ `Add Files to [your project's name]`
97
91
2. Go to `node_modules` ➜ `react-native-config-reader` and add `RNConfigReader.xcodeproj`
98
92
3. In XCode, in the project navigator, select your project. Add `libRNConfigReader.a` to your project's `Build Phases` ➜ `Link Binary With Libraries`
99
-
4. Run your project (`Cmd+R`)<
93
+
4. Run your project (`Cmd+R`)
100
94
101
-
####Android
95
+
### Android
102
96
103
97
1. Open up `android/app/src/main/java/[...]/MainApplication.java`
98
+
104
99
- Add `import com.reactlibrary.RNConfigReaderPackage;` to the imports at the top of the file
105
100
- Add `new RNConfigReaderPackage()` to the list returned by the `getPackages()` method
106
-
2. Append the following lines to `android/settings.gradle`:
107
-
```
108
-
include ':react-native-config-reader'
109
-
project(':react-native-config-reader').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-config-reader/android')
110
-
```
111
-
3. Insert the following lines inside the dependencies block in `android/app/build.gradle`:
112
-
```
113
-
compile project(':react-native-config-reader')
114
-
```
115
-
116
-
##### Android advanced configurations with Multiple environments
117
101
118
-
If your app uses an `applicationIdSuffix` or a different `applicationId` depending on the build variants, you must append the following line inside the `buildTypes` block in your `android/app/build.gradle` file and specify your new package name.
102
+
1. Append the following lines to `android/settings.gradle`:
103
+
104
+
```gradle
105
+
include ':react-native-config-reader'
106
+
project(':react-native-config-reader').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-config-reader/android')
107
+
```
119
108
109
+
1. Insert the following lines inside the dependencies block in `android/app/build.gradle`:
110
+
111
+
```gradle
112
+
compile project(':react-native-config-reader')
120
113
```
114
+
115
+
#### Android advanced configurations with Multiple environments
116
+
117
+
If your app uses an `applicationIdSuffix` or a different `applicationId` depending on the build variants, you must append the following line inside the `buildTypes` block in your `android/app/build.gradle` file and specify your new package name.
🚨 When this project was first created in early 2019, it offered support for a beta version of [React Native for Windows](https://github.com/microsoft/react-native-windows). Since this time, many updates have been published to both `react-native` and `react-native-windows`, with no active updates in this project to ensure compatibility.
139
+
140
+
🙏 If you're interested in using this library with `react-native-windows`, and can offer assistance maintaining it, please reach out to the maintainers by filing an issue.
139
141
140
142
1. In Visual Studio add the `RNConfigReader.sln` in `node_modules/react-native-config-reader/windows/RNConfigReader.sln` folder to their solution, reference from their app.
141
-
2. Open up your `MainPage.cs` app
143
+
144
+
1. Open up your `MainPage.cs` app
145
+
142
146
- Add `using Config.Reader.RNConfigReader;` to the usings at the top of the file
143
147
- Add `new RNConfigReaderPackage()` to the `List<IReactPackage>` returned by the `Packages` method
144
148
@@ -156,10 +160,8 @@ If using Dexguard, the shrinking phase will remove resources it thinks are unuse
0 commit comments