A example project of building iOS Action Extension with React Native 0.60+
-
Generate React Native Project
npx react-native init RNActionExtension
-
Create Action Extension target in XCode with this commit
-
Add ActionExt target in Podfile with this commit, then run pod install
cd RNActionExtension/ios && pod install
-
Fix this error: 'sharedApplication' is unavailable: not available on iOS (App Extension) with this commit, then run pod install again.
cd RNActionExtension/ios && pod install
-
Make sure Javascript bundle is allowed to be loaded with this commit
-
Can show React Native View with this commit
-
Expose a method that can dismiss the extension to React Native view with this commit
-
Dismiss the extension from React Native view with this commit
-
Expose a method that can get action data from the extension to React Native view with this commit
-
Can show action data in React Native view with this commit
-
Generate React Native Project
npx react-native init RNActionExtensionSwift
-
Create Action Extension target in XCode with this commit
-
Add Objective-C bridging header with this commit
-
Add ActionExt target in Podfile with this commit, then run pod install
cd RNActionExtensionSwift/ios && pod install
-
Fix this error: 'sharedApplication' is unavailable: not available on iOS (App Extension) with this commit, then run pod install again.
cd RNActionExtensionSwift/ios && pod install
-
Make sure Javascript bundle is allowed to be loaded with this commit
-
Can show React Native View with this commit
-
Expose a method that can dismiss the extension to React Native view with this commit
-
Dismiss the extension from React Native view with this commit
-
Expose a method that can get action data from the extension to React Native view with this commit
-
Can show action data in React Native view with this commit