Changes mostly pulled from React Native Upgrade Helper. Will describe the rest inline.
Depends on D5895
Paths
| Differential D5896 Authored by ashoat on Dec 17 2022, 7:21 PM.
Details
Summary Changes mostly pulled from React Native Upgrade Helper. Will describe the rest inline. Depends on D5895 Test Plan Along with testing pod install, this was tested along with whole stack: test plan
Diff Detail
Event TimelineHerald added a subscriber: atul. · View Herald TranscriptDec 17 2022, 7:21 PM2022-12-17 19:21:10 (UTC-8) Harbormaster returned this revision to the author for changes because remote builds failed.Dec 17 2022, 7:24 PM2022-12-17 19:24:30 (UTC-8) ashoat added a child revision: D5897: [native] [3/40] RN 0.70: iOS stuff.Dec 17 2022, 7:26 PM2022-12-17 19:26:18 (UTC-8) This revision is now accepted and ready to land.Dec 19 2022, 4:33 AM2022-12-19 04:33:14 (UTC-8) Harbormaster failed remote builds in B14541: Diff 19801!Dec 20 2022, 11:02 AM2022-12-20 11:02:53 (UTC-8) This revision was landed with ongoing or failed builds.Dec 20 2022, 12:00 PM2022-12-20 12:00:32 (UTC-8) Closed by commit rCOMM98231208cd0d: [native] [2/40] RN 0.70: Podfile update (authored by ashoat). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 19459 native/ios/Comm.xcodeproj/project.pbxproj
native/ios/Podfile
native/ios/Podfile.lock
|
We definitely should return something from this lambda since otherwise it is useless to assign it to variable.
If we find that we don't have permissions then just calling await this.requestAndroidNotificationsPermission(); would result in a prompt asking for notifications permissions. However if the user grants those permissions then hasPermissions is still falsy (since promise returned nothing), so deviceToken will be set to null. Nevertheless permissions are actually granted byt the OS, so the state on the device and keyserver would heal itself on next render.
This differential fixes this case so that if user grants permissions correct state is achieved immediately without need for additional re-render to heal the state.