This repository was archived by the owner on May 20, 2025. It is now read-only.
v1.7.3-beta
·
1243 commits
to master
since this release
This is a bug fix release which addresses a user-reported iOS issue and also introduces a small breaking change for apps using getCurrentPackage. It is now available on NPM and can be updated immediately by running npm i --save react-native-code-push@latest.
Bug Fixes (iOS)
- When the
Promisereturned bygetCurrentPackagewas rejected (rare but possible), the native-side wasn't properly returning from the method, and therefore, it would attempt to resolve thePromiseas well, which would result in a "Callback with id [ID] not found" error.
Breaking Changes
- The
getCurrentPackagemethod now returnsnullwhen the currently running JS bundle is coming from the binary and not from a CodePush update. This is the behavior that most people expected, but in case you're usinggetCurrentPackageand not currently checking for anullobject as the resolved value of itsPromise, you need to make sure to update that. Note that this isn't a server change, and therefore, existing production apps are unaffected. This breaking change only affects apps that upgrade to 1.7.3+ and continue callinggetCurrentPackagewithout checking fornull.