react-native icon indicating copy to clipboard operation
react-native copied to clipboard

React package in Cocoapod doesn't have the function "bundle" and some others, will facebook complete these functions?

Open Creemli opened this issue 10 years ago • 2 comments

In npm packages, react-native provide these functions:

case 'start':
runPackager();
break;
case 'install':
install.init();
break;
case 'bundle':
bundle.init(args);
break;
case 'new-library':
newLibrary.init(args);
break;
case 'init':
printInitWarning();
break;
case 'android':
generateAndroid(
process.cwd(),
JSON.parse(fs.readFileSync('package.json', 'utf8')).name
);
break;
case 'run-android':

but in Cocoapod React, we can only find:

case 'init':
if (args[1]) {
var verbose = process.argv.indexOf('--verbose') >= 0;
init(args[1], verbose);
} else {
console.error(
'Usage: react-native init  [--verbose]'
);
process.exit(1);
}
break;
default:
console.error(
'Command %s unrecognized. ' +
'Did you mean to run this inside a react-native project?',
args[0]
);
process.exit(1);
break;
}

Does facebook plan to complete these functions in the future?

Many thanks ~~

Creemli avatar Dec 08 '15 07:12 Creemli

Hey Creemli, thanks for reporting this issue!

React Native, as you've probably heard, is getting really popular and truth is we're getting a bit overwhelmed by the activity surrounding it. There are just too many issues for us to manage properly.

  • If this is a feature request or a bug that you would like to be fixed by the team, please report it on Product Pains. It has a ranking feature that lets us focus on the most important issues the community is experiencing.
  • If you don't know how to do something or not sure whether some behavior is expected or a bug, please ask on StackOverflow with the tag react-native or for more real time interactions, ask on Discord in the #react-native channel.
  • We welcome clear issues and PRs that are ready for in-depth discussion; thank you for your contributions!

facebook-github-bot avatar Dec 08 '15 07:12 facebook-github-bot

Facebook doesn't use CocoaPods so I don't think these functions will be supported. Use react-native init instead of CocoaPods if you would like to use them, or if you would like to use CocoaPods then the source code is freely available for you to simulate what those functions are doing.

ide avatar Dec 08 '15 08:12 ide