0

When I changed a library (like 'react-native-image-crop-picker') version on package.json and distribute it with code push in users app the version not changed. They see older version of that library in app.

what should I do?

Mahdi
  • 526
  • 2
  • 5
  • 16

1 Answers1

4

Code Push only works with JS code. It doesn't allow to push native binaries. In your case, you have to update app bundles in stores to update your native dependencies.

The CodePush plugin helps get product improvements in front of your end users instantly, by keeping your JavaScript and images synchronized with updates you release to the CodePush server.

Taken from Code Push docs.

Georgiy T.
  • 1,131
  • 11
  • 17
  • But when I add the library code push work completely. What's the difference between Updated library and new library? – Mahdi Oct 15 '18 at 04:39
  • 1
    @Mahdi in your case Code Push will only use an updated JS bundle. However, if your dependency (react-native-image-crop-picker) changed a native code, your updated app won't use new binaries. – Georgiy T. Oct 15 '18 at 22:32