Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3c1698c

Browse files
committed
Add @react-native-community/cli 2.x & 3.x support
1 parent 0bf22fb commit 3c1698c

3 files changed

Lines changed: 7 additions & 4 deletions

File tree

‎example/ios/Podfile.lock‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ PODS:
296296
- React-Core (= 0.63.3)
297297
- React-cxxreact (= 0.63.3)
298298
- React-jsi (= 0.63.3)
299-
- RNBootSplash (3.0.0):
299+
- RNBootSplash (3.0.1):
300300
- React-Core
301301
- Yoga (1.14.0)
302302
- YogaKit (1.18.1):
@@ -460,7 +460,7 @@ SPEC CHECKSUMS:
460460
React-RCTText: 65a6de06a7389098ce24340d1d3556015c38f746
461461
React-RCTVibration: 8e9fb25724a0805107fc1acc9075e26f814df454
462462
ReactCommon: 4167844018c9ed375cc01a843e9ee564399e53c3
463-
RNBootSplash: b76889807da9447e92cdf418d9530e6176480807
463+
RNBootSplash: 52cb45e8667861daf1b4cbdf26bfd8eff4014ecc
464464
Yoga: 7d13633d129fd179e01b8953d38d47be90db185a
465465
YogaKit: f782866e155069a2cca2517aafea43200b01fd5a
466466

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-bootsplash",
3-
"version": "3.0.0",
3+
"version": "3.0.1",
44
"license": "MIT",
55
"description": "Display a bootsplash on your app starts. Hide it when you want.",
66
"author": "Mathieu Acthernoene <[email protected]>",

‎src/generate.ts‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,10 @@ export const generate = async ({
212212
}
213213

214214
if (android) {
215-
const appPath = path.resolve(android.sourceDir, android.appName);
215+
const appPath = android.appName
216+
? path.resolve(android.sourceDir, android.appName)
217+
: path.resolve(android.sourceDir); // @react-native-community/cli 2.x & 3.x support
218+
216219
const resPath = path.resolve(appPath, "src", "main", "res");
217220
const drawablePath = path.resolve(resPath, "drawable");
218221
const valuesPath = path.resolve(resPath, "values");

0 commit comments

Comments
 (0)