i have next code to pick image from user’s gallery
<code>const pickImage = async () => {
let result = await ImagePicker.launchImageLibraryAsync({
mediaTypes: ImagePicker.MediaTypeOptions.All,
allowsEditing: true,
aspect: [4, 3],
quality: 1,
});
</code>
<code>const pickImage = async () => {
let result = await ImagePicker.launchImageLibraryAsync({
mediaTypes: ImagePicker.MediaTypeOptions.All,
allowsEditing: true,
aspect: [4, 3],
quality: 1,
});
</code>
const pickImage = async () => {
let result = await ImagePicker.launchImageLibraryAsync({
mediaTypes: ImagePicker.MediaTypeOptions.All,
allowsEditing: true,
aspect: [4, 3],
quality: 1,
});
i send base64 to my server but this string is unbelievable long, i’ve tried to set less quality – 0.7 and i got 10x less string but still to long.
I need to make is shorted because when user re-login into app i got this string back and put into Image source, i render this image in screen which i open with modal presentation from bottom-to-top and i’m getting small throttling when open this screen
How to improve performance of my modal screen?