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
Promise
returned bygetCurrentPackage
was rejected (rare but possible), the native-side wasn't properly returning from the method, and therefore, it would attempt to resolve thePromise
as well, which would result in a "Callback with id [ID] not found" error.
Breaking Changes
- The
getCurrentPackage
method now returnsnull
when 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 usinggetCurrentPackage
and not currently checking for anull
object 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 callinggetCurrentPackage
without checking fornull
.