I am unable to pick a image from my local project.
The error I am getting is :-
TypeError : expected dynamic type 'string' but had type 'int64' for ImageRotateModule.rotateImage at argument index 0
Below is the code :-
rotate(angle) {
debugger;
const nextAngle = this.state.currentAngle + angle;
ImageRotate.rotateImage(
require('../images/bus.png'), <--- returns an integer value
nextAngle,
(uri) => {
var data = {uri : uri ,nextAngle : nextAngle}
return data;
},
(error) => {
console.error(error);
}
);
}