Skip to content

Commit

Permalink
Add extensibility point on react-native-xcode.sh script
Browse files Browse the repository at this point in the history
Summary:
Original pull request: #12863

Useful for generating source maps, for example.

Feature parity with Android, that already have this extensibility point on `build.gradle`:
```
project.ext.react = [
    extraPackagerArgs: [...]
]
```

Xcode > Build Phases > Bundle React Native code and Images
```
export NODE_BINARY=node
export EXTRA_PACKAGER_ARGS="--sourcemap-output ${SRCROOT}/build/main.jsbundle.map"
../node_modules/react-native/scripts/react-native-xcode.sh
```

[IOS] [FEATURE] [./react-native-xcode.sh] - Added $EXTRA_PACKAGER_ARGS extensibility point
Closes #16933

Differential Revision: D6771709

Pulled By: yungsters

fbshipit-source-id: a33614b45b1e3537daeb31504fdd3a402dc70ff0
  • Loading branch information
brunolemos authored and facebook-github-bot committed Jan 22, 2018
1 parent bcfbdf4 commit 0d4ff1b
Showing 1 changed file with 0 additions and 129 deletions.
129 changes: 0 additions & 129 deletions scripts/react-native-xcode.sh

This file was deleted.

3 comments on commit 0d4ff1b

@chirag04
Copy link
Contributor

Choose a reason for hiding this comment

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

@hramos original PR was to change something. seems like the import deleted the entire file.

@brunolemos
Copy link
Contributor Author

@brunolemos brunolemos commented on 0d4ff1b Jan 23, 2018

Choose a reason for hiding this comment

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

Yep cc @yungsters.
The PR is just one line change, not idea why this happened when the bot imported.

PS: although the first line says PR 12683 the correct one is #16933.

@yungsters
Copy link
Contributor

Choose a reason for hiding this comment

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

See b8c86b8.

Please sign in to comment.