You should try this library instead.
react-native init TodayWidgetTest
- Added
TodayWidget
today widget extension target - Set
TodayViewController
as theNSExtensionPrincipalClass
in theTodayWidget
Info.plist file - Removed the storyboard file that came with it
- Added this code and this code
- Added
App Transport Security Settings
in order toAllow Arbitrary Loads
in the Info.plist file - Under Build Phases, add all React Native binary libraries in the Link Binary with Libraries for the
TodayWidget
target - Under Build Settings, add
-ObjC
linker flag - Set Deployment Target to 7.0
This works on the iOS Simulator, but unfortunately doesn't work on an actual phone.