Ziggeo / ReactNativeSDK

React Native SDK
Apache License 2.0
7 stars 6 forks source link

Upload not working anymore ? #25

Closed MrHazimAli closed 5 years ago

MrHazimAli commented 5 years ago

react-native: 0.47.2 react-native-ziggeo-library: 1.1.7

The project is running perfectly before this.. once I try to update to ziggeo 1.3.0, i get error once called upload.. and I unlink and uninstall back the package and go back to 1.1.7 also upload still not working.. same error. does upload already not being exposed or change the name ? videoplayer is working fine

TypeError: _reactNativeZiggeoLibrary2.default.upload is not a function at ZiggeoUpload._this.uploadToZiggeo (ZiggeoUpload.js:64) at ZiggeoUpload._this.componentDidMount (ZiggeoUpload.js:45) at ReactNativeStack-dev.js:1658 at measureLifeCyclePerf (ReactNativeStack-dev.js:1610) at ReactNativeStack-dev.js:1657 at CallbackQueue.notifyAll (ReactNativeStack-dev.js:2121) at ReactNativeReconcileTransaction.close (ReactNativeStack-dev.js:2138) at ReactNativeReconcileTransaction.closeAll (ReactNativeStack-dev.js:1412) at ReactNativeReconcileTransaction.perform (ReactNativeStack-dev.js:1388) at ReactUpdatesFlushTransaction.perform (ReactNativeStack-dev.js:1382)

This is what I have found once I log ziggeo object.. cant seem to find upload

screen shot 2018-12-20 at 4 07 35 pm

please help. thanks!

alexyats commented 5 years ago

Hi @MrHazimAli, what platform is affected (android/iOS)? Did you try to use our demo app?

MrHazimAli commented 5 years ago

@alexyats , I try this on android. I did not use the demo app yet since last time it work on the projects.

3akat commented 5 years ago

Hi @MrHazimAli, will take a look

3akat commented 5 years ago

Hi @MrHazimAli! Yup, there is no upload method anymore, it has been replaced with three new methods uploadFromFileSelector, uploadFromFileSelectorWithTimeLimit and uploadFromPath. The uploadFromPath is the one you need, please, take a look. We will prepare a README file with the description of available functionality. Currently you can check sources of the Demo app for use samples.

MrHazimAli commented 5 years ago

Hi @3akat , thanks for the update. I will take a look at the sample and update my project code. 👍