@@ -12,7 +12,6 @@ const DEFAULT_PREFIX = 'RN';
1212const DEFAULT_MODULE_PREFIX = 'react-native' ;
1313const DEFAULT_PACKAGE_IDENTIFIER = 'com.reactlibrary' ;
1414const DEFAULT_PLATFORMS = [ 'android' , 'ios' ] ;
15- const DEFAULT_OVERRIDE_PREFIX = false ;
1615const DEFAULT_GITHUB_ACCOUNT = 'github_account' ;
1716const DEFAULT_AUTHOR_NAME = 'Your Name' ;
1817const DEFAULT_AUTHOR_EMAIL = 'yourname@email.com' ;
@@ -40,25 +39,13 @@ module.exports = ({
4039 modulePrefix = DEFAULT_MODULE_PREFIX ,
4140 packageIdentifier = DEFAULT_PACKAGE_IDENTIFIER ,
4241 platforms = DEFAULT_PLATFORMS ,
43- overridePrefix = DEFAULT_OVERRIDE_PREFIX ,
4442 githubAccount = DEFAULT_GITHUB_ACCOUNT ,
4543 authorName = DEFAULT_AUTHOR_NAME ,
4644 authorEmail = DEFAULT_AUTHOR_EMAIL ,
4745 license = DEFAULT_LICENSE ,
4846 view = false ,
4947 generateExample = DEFAULT_GENERATE_EXAMPLE ,
5048} ) => {
51- if ( ! overridePrefix ) {
52- if ( hasPrefix ( name ) ) {
53- throw new Error ( 'Please don\'t include the prefix in the name' ) ;
54- }
55-
56- if ( prefix === 'RCT' ) {
57- throw new Error ( `The \`RCT\` name prefix is reserved for core React modules.
58- Please use a different prefix.` ) ;
59- }
60- }
61-
6249 if ( platforms . length === 0 ) {
6350 throw new Error ( 'Please specify at least one platform to generate the library.' ) ;
6451 }
0 commit comments