image did not showning
atul2427 opened this issue · 0 comments
atul2427 commented
import React, { Component } from 'react';
import { ImageColorPicker } from 'react-native-image-color-picker';
import { View } from 'react-native';
export default class App extends Component {
pickerCallback = message => {
if (message && message.nativeEvent && message.nativeEvent.data) {
console.log(message.nativeEvent.data); // response from ImageColorPicker
}
};
render() {
return (
<View style = {{height:'40%' , width = '40%'}}>
<ImageColorPicker style = {{height :40 , width : 50}}
imageUrl="https://dummyimage.com/100x100?ts=Math.random()"
pickerCallback={this.pickerCallback}
/>
);
}
}