Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: run-android not finding scripts to overwrite #141

Merged
merged 4 commits into from
Feb 1, 2019

Conversation

grabbou
Copy link
Member

@grabbou grabbou commented Feb 1, 2019

Fixes #126

We need to change this approach, issue tracking in #140.

@grabbou
Copy link
Member Author

grabbou commented Feb 1, 2019

I added support for running from React Native source. Note: run-android doesn't work for React Native source at the moment anyway. I am going to open an issue to track support for it.

['android'].concat(process.argv.slice(1)),
{ stdio: 'inherit' }
);
} else {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CRNA is deprecated, so removing support for it anyway

@grabbou
Copy link
Member Author

grabbou commented Feb 1, 2019

This is critical bug that has to be shipped with next RC.

*/
const possibleScriptLocation = path.resolve(
__dirname,
`../../../../../scripts/${scriptFile}`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

or you could add a new flag pathToReactNative which you could pass to RNTester scripts?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I think this is a good idea and would solve few other issues we had already in start command. Let me rewrite it by adding global --pathToReactNative flag (similar to root) so that users can pass it and we can decide where to use it.

This is amazing for debugging too!

* Set up the `.packager.(env|bat)` file to ensure the packager starts on the right port.
*/
const launchPackagerScript = require.resolve(
`react-native/scripts/${scriptFile}`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a reminder to convert this path to a flag passed to run-android/run-ios command

@thymikee thymikee merged commit 4ee44da into master Feb 1, 2019
@thymikee thymikee deleted the feat/fix-run-android branch February 1, 2019 14:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants