livechat / react-native-livechat

React Native component to integrate LiveChat with your application.
MIT License
81 stars 48 forks source link

React Native attempt to invoke virtual method on a null object reference #27

Open piyushmantri opened 5 years ago

piyushmantri commented 5 years ago

I get this error when i try to send file using the visitorSDK.

My code looks like this:

ImagePicker.launchImageLibrary({ allowsEditing: true, aspect: [4, 3] }, response => { if (!response.didCancel) { visitorSDK .sendFile({ file: response, customId: String(Math.random()), }) .then(response => { console.log(response.status) }) .catch(error => { console.log(error) }) }

screen shot 2019-02-21 at 1 00 21 pm

venits commented 5 years ago

Hi, sadly image sending works only on web :( For now we don't have solution for that.

piyushmantri commented 5 years ago

Hi, Any idea when this is going to be implemented?

venits commented 5 years ago

Probably it will be fixed with new transfer protocol but It will happen not sooner that 6 months from now :(