create-react-native-library 0.54.3 → 0.54.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-react-native-library",
|
|
3
|
-
"version": "0.54.
|
|
3
|
+
"version": "0.54.4",
|
|
4
4
|
"description": "CLI to scaffold React Native libraries",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react-native",
|
|
@@ -66,5 +66,5 @@
|
|
|
66
66
|
"@types/validate-npm-package-name": "^3.0.3",
|
|
67
67
|
"@types/yargs": "^17.0.10"
|
|
68
68
|
},
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "49bac649adc7e02218ac534b967a10c17bb946eb"
|
|
70
70
|
}
|
package/templates/common/$.nvmrc
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
v22.20.0
|
|
@@ -48,9 +48,6 @@
|
|
|
48
48
|
"clean": "del-cli lib",
|
|
49
49
|
<% } -%>
|
|
50
50
|
"prepare": "bob build",
|
|
51
|
-
<% if (project.moduleConfig === 'nitro-modules' || project.viewConfig === 'nitro-view') { -%>
|
|
52
|
-
"nitrogen": "nitro-codegen",
|
|
53
|
-
<% } -%>
|
|
54
51
|
"release": "release-it --only-version"
|
|
55
52
|
},
|
|
56
53
|
"keywords": [
|
|
@@ -92,7 +89,7 @@
|
|
|
92
89
|
"eslint-plugin-prettier": "^5.5.4",
|
|
93
90
|
"jest": "^29.7.0",
|
|
94
91
|
<% if (project.moduleConfig === 'nitro-modules' || project.viewConfig === 'nitro-view') { -%>
|
|
95
|
-
"
|
|
92
|
+
"nitrogen": "^<%- versions.nitro %>",
|
|
96
93
|
<% } -%>
|
|
97
94
|
"prettier": "^3.6.2",
|
|
98
95
|
"react": "19.1.0",
|
|
@@ -43,7 +43,7 @@ The [example app](/example/) demonstrates usage of the library. You need to run
|
|
|
43
43
|
It is configured to use the local version of the library, so any changes you make to the library's source code will be reflected in the example app. Changes to the library's JavaScript code will be reflected in the example app without a rebuild, but native code changes will require a rebuild of the example app.
|
|
44
44
|
|
|
45
45
|
<% if (project.native) { -%>
|
|
46
|
-
If you want to use Android Studio or
|
|
46
|
+
If you want to use Android Studio or Xcode to edit the native code, you can open the `example/android` or `example/ios` directories respectively in those editors. To edit the Objective-C or Swift files, open `example/ios/<%- project.name -%>Example.xcworkspace` in Xcode and find the source files at `Pods > Development Pods > <%- project.slug -%>`.
|
|
47
47
|
|
|
48
48
|
To edit the Java or Kotlin files, open `example/android` in Android studio and find the source files at `<%- project.identifier -%>` under `Android`.
|
|
49
49
|
|
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
@implementation <%- project.name -%>
|
|
4
4
|
|
|
5
|
-
RCT_EXPORT_MODULE()
|
|
6
|
-
|
|
7
5
|
- (NSNumber *)multiply:(double)a b:(double)b {
|
|
8
6
|
NSNumber *result = @(a * b);
|
|
9
7
|
|
|
@@ -16,4 +14,9 @@ RCT_EXPORT_MODULE()
|
|
|
16
14
|
return std::make_shared<facebook::react::Native<%- project.name -%>SpecJSI>(params);
|
|
17
15
|
}
|
|
18
16
|
|
|
17
|
+
+ (NSString *)moduleName
|
|
18
|
+
{
|
|
19
|
+
return @"<%- project.name -%>";
|
|
20
|
+
}
|
|
21
|
+
|
|
19
22
|
@end
|