i am working on a project i need to use the camera i generate react native version 66.1 and i installed the latest version of react-native-image-piker 4.1.2
no permission needed
and this is the simple code
try {
launchCamera({quality: 1}, img =>
this.setState({
img: {...img?.assets[0], name: img?.assets[0]?.fileName},
}),
);
} catch (e) {
console.log(e);
}
but always my app is restarted
i found some solution like adding android:largeHeap="true" in the manifest but ntg work and i also tested the library in empty project it's working fine
i've worked with with android 11 and 7 and the same problem in both