This is an example project in a tinkering attempt to get an iOS Share Extension UI to include a React Native UI. The attempt was inspired by facebook/react-native#1626 .
open ios/ShareExtensionExample.xcodeproj
# hit the Run button
- Select the
ShareExtension
scheme in Xcode
- Tell Xcode to run within Safari
- Click the Share button in the iOS simulator's Safari.app
- Select the
ShareExtension
icon to bring up the share extension UI
If you're having any issues getting React Native to actually run in your share
extension, make sure your extension's target includes the -ObjC
linker flag
([Other Linker Flags
in Xcode's Build Settings
GUI][ss]).
StackOverflow answer: http://stackoverflow.com/a/34099070