React Native Image Processing API to edit photo programmatically for Android and iOS. It features print text, overlay on another image (add watermark), resize, crop, flip, rotate and optimize image size then convert file format to jpeg or png
My app is showing error like "Can't find variable PhotoManipulator"
how can i solve this error
i am new in React-native so i' dont have a much more knowledge about this
This is my code :::::::::
import React from 'react';
import {
SafeAreaView,
StyleSheet,
ScrollView,
View,
Text, Image,ImageBackground
} from 'react-native';
import RNPhotoManipulator from 'react-native-photo-manipulator';
My app is showing error like "Can't find variable PhotoManipulator" how can i solve this error i am new in React-native so i' dont have a much more knowledge about this
This is my code :::::::::
import React from 'react'; import { SafeAreaView, StyleSheet, ScrollView, View, Text, Image,ImageBackground } from 'react-native'; import RNPhotoManipulator from 'react-native-photo-manipulator';
const image = "https://unsplash.com/photos/qw6qQQyYQpo/download?force=true"; const cropRegion = { x: 5, y: 30, height: 400, width: 250 }; const targetSize = { size: 200, width: 150 };
const Img=()=>{ PhotoManipulator.crop(image, cropRegion, targetSize).then(path => { console.log(
Result image path: ${path}
); });return (
}
class App extends React.Component {
render(){
} }
export default React.memo(App);
const styles = StyleSheet.create(
{
container: { flex: 1, backgroundColor: '#FBFCFC', //#FFFAFA
}, });