Search code snippets, questions, articles...

Upload Image on Ios

const form = new FormData();
await form.append(‘image’, {
name: ‘image’,
type: ‘image/jpeg’,
uri: item
  ? Platform.OS === ‘android’
    ? item
    : item.replace(‘file://‘, ‘’)
  : null,
});
Was this helpful?
0 Comments
Programming Feeds
Learn something new everyday on Devsheet