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

[iOS] Use mainBundle in RCTConvert to resolve asset paths #3889

Closed

Conversation

negativetwelve
Copy link
Contributor

See #3888 for why this is necessary. Essentially, [NSBundle mainBundle] loads the file path for the target app which is the only way to reference images.

Test plan: Make sure unit tests pass!

cc @javache @nicklockwood

@facebook-github-bot
Copy link
Contributor

By analyzing the blame information on this pull request, we identified @javache, @nicklockwood and @sahrens to be potential reviewers.

@facebook-github-bot facebook-github-bot added GH Review: review-needed CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. labels Nov 4, 2015
@nicklockwood
Copy link
Contributor

@facebook-github-bot shipit

@facebook-github-bot
Copy link
Contributor

Thanks for importing. If you are an FB employee go to https://our.intern.facebook.com/intern/opensource/github/pull_request/505905282925767/int_phab to review.

@nicklockwood
Copy link
Contributor

This broke some of our internal tests which were relying on assets located in the test bundle. I'm going to need to solve that before I can land this. The fix itself is correct though - we'll find another solution for the tests.

@negativetwelve
Copy link
Contributor Author

Sure thing, thanks for letting me know!

@ghost ghost closed this in f8df384 Nov 5, 2015
@negativetwelve negativetwelve deleted the main-bundle-assets branch November 5, 2015 20:31
MattFoley pushed a commit to skillz/react-native that referenced this pull request Nov 9, 2015
Summary: See facebook#3888 for why this is necessary. Essentially, `[NSBundle mainBundle]` loads the file path for the target app which is the only way to reference images.

cc javache nicklockwood
Closes facebook#3889

Reviewed By: svcscm

Differential Revision: D2615580

Pulled By: nicklockwood

fb-gh-sync-id: d06ce0987dde666b06bb5a7edf609ed45f325d2c
Crash-- pushed a commit to Crash--/react-native that referenced this pull request Dec 24, 2015
Summary: See facebook#3888 for why this is necessary. Essentially, `[NSBundle mainBundle]` loads the file path for the target app which is the only way to reference images.

cc javache nicklockwood
Closes facebook#3889

Reviewed By: svcscm

Differential Revision: D2615580

Pulled By: nicklockwood

fb-gh-sync-id: d06ce0987dde666b06bb5a7edf609ed45f325d2c
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants