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
+14-5Lines changed: 14 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,8 +34,13 @@ This tool based on [`react-native-create-library`](https://www.npmjs.com/package
34
34
-[issue #99](https://github.com/brodybits/create-react-native-module/issues/99) - additional `pod install` step needed for RN 0.60 on iOS
35
35
-[issue #29](https://github.com/brodybits/create-react-native-module/issues/29) - View does not work with RN 0.60 on Android (quick patch needed)
36
36
- React Native 0.60(+) currently not supported by Expo or react-native-windows
37
+
- Platform fork support
38
+
- tvOS platform support
39
+
- requires use of `--tvos-enabled` option as documented below
40
+
- requires the [`react-native-tvos`](https://www.npmjs.com/package/react-native-tvos) fork (see discussion in [react-native-community/react-native-tvos#11](https://github.com/react-native-community/react-native-tvos/issues/11))
41
+
- unstable with very limited testing, with limited if any active support from the primary maintainer [@brodybits](https://github.com/brodybits) (see [issue #127](https://github.com/brodybits/create-react-native-module/issues/127))
42
+
- minimum react-native-tvos version is 0.60 (see [issue #95](https://github.com/brodybits/create-react-native-module/issues/95))
37
43
- Out-of-tree platform support
38
-
- tvOS platform support - unstable with very limited testing, minimum react-native-tvos version is 0.60 (see [issue #95](https://github.com/brodybits/create-react-native-module/issues/95))
39
44
- Windows - unstable (not tested, see [issue #23](https://github.com/brodybits/create-react-native-module/issues/23)); now deprecated and may be removed in the near future (see [issue #43](https://github.com/brodybits/create-react-native-module/issues/43))
40
45
- for future consideration: macOS (see [issue #94](https://github.com/brodybits/create-react-native-module/issues/94))
41
46
- Node.js pre-10 support is deprecated and will be removed in the near future (see [issue #38](https://github.com/brodybits/create-react-native-module/issues/38))
@@ -94,17 +99,19 @@ Options:
94
99
--prefix <prefix> The prefix for the library module (Default: ``)
95
100
--module-name <moduleName> The module library package name to be used in package.json. Default: react-native-(name in param-case)
96
101
--module-prefix <modulePrefix> The module prefix for the library module, ignored if --module-name is specified (Default: `react-native`)
97
-
--package-identifier <packageIdentifier> (Android only!) The package name for the Android module (Default: `com.reactlibrary`)
102
+
--package-identifier <packageIdentifier> [Android] The Java package identifier used by the Android module (Default: `com.reactlibrary`)
98
103
--platforms <platforms> Platforms the library module will be created for - comma separated (Default: `ios,android`)
104
+
--tvos-enabled Generate the module with tvOS build enabled (requires react-native-tvos fork, with minimum version of 0.60, and iOS platform to be enabled)
99
105
--github-account <githubAccount> The github account where the library module is hosted (Default: `github_account`)
100
106
--author-name <authorName> The author's name (Default: `Your Name`)
101
107
--author-email <authorEmail> The author's email (Default: `yourname@email.com`)
102
108
--license <license> The license type (Default: `MIT`)
103
109
--view Generate the module as a very simple native view component
104
-
--use-cocoapods Generate a library with a sample podspec and third party pod usage example
110
+
--use-apple-networking[iOS] Use `AFNetworking` dependency as a sample in the podspec & use it from the iOS code
105
111
--generate-example Generate an example project and links the library module to it, requires both react-native-cli and yarn to be installed globally
106
112
--example-name <exampleName> Name for the example project (default: `example`)
107
113
--example-react-native-version <version> React Native version for the generated example project (default: `react-native@0.59`)
114
+
--write-example-podfile [iOS] EXPERIMENTAL FEATURE NOT SUPPORTED: write (or overwrite) example ios/Podfile
108
115
-h, --help output usage information
109
116
```
110
117
@@ -129,16 +136,18 @@ createLibraryModule({
129
136
moduleName:String, /* The module library package name to be used in package.json. Default: react-native-(name in param-case) */
130
137
modulePrefix:String, /* The module prefix for the library, ignored if moduleName is specified (Default: react-native) */
131
138
platforms:Array|String, /* Platforms the library will be created for. (Default: ['android', 'ios']) */
132
-
packageIdentifier:String, /* (Android only!) The package name for the Android module (Default: com.reactlibrary) */
139
+
packageIdentifier:String, /* [Android] The Java package identifier used by the Android module (Default: com.reactlibrary) */
140
+
tvosEnabled:Boolean, /* Generate the module with tvOS build enabled (requires react-native-tvos fork, with minimum version of 0.60, and iOS platform to be enabled) */
133
141
githubAccount:String, /* The github account where the library is hosted (Default: `github_account`) */
134
142
authorName:String, /* The author's name (Default: `Your Name`) */
135
143
authorEmail:String, /* The author's email (Default: `yourname@email.com`) */
136
144
license:String, /* The license type of this library (Default: `MIT`) */
137
-
useCocoapods:Boolean, /*Generate a library with a sample podspec and third party pod usage example (Default: false) */
145
+
useAppleNetworking:Boolean, /*[iOS] Use `AFNetworking` dependency as a sample in the podspec & use it from the iOS code (Default: false) */
138
146
view:Boolean, /* Generate the module as a very simple native view component (Default: false) */
139
147
generateExample:Boolean, /* Generate an example project and links the library module to it, requires both react-native-cli and yarn to be installed globally (Default: false) */
140
148
exampleName:String, /* Name for the example project (Default: `example`) */
141
149
exampleReactNativeVersion:String, /* React Native version for the generated example project (Default: `react-native@0.59`) */
150
+
writeExamplePodfile:Boolean, /* [iOS] EXPERIMENTAL FEATURE NOT SUPPORTED: write (or overwrite) example ios/Podfile (Default: false) */
description: '(Android only!) The package name for the Android module',
71
+
description: '[Android] The Java package identifier used by the Android module',
73
72
default: 'com.reactlibrary',
74
73
},{
75
74
command: '--platforms <platforms>',
76
75
description: 'Platforms the library module will be created for - comma separated',
77
76
default: 'ios,android',
77
+
},{
78
+
command: '--tvos-enabled',
79
+
description: 'Generate the module with tvOS build enabled (requires react-native-tvos fork, with minimum version of 0.60, and iOS platform to be enabled)',
78
80
},{
79
81
command: '--github-account [githubAccount]',
80
82
description: 'The github account where the library module is hosted',
0 commit comments