// Upload an image
launchImageLibrary({ mediaType: "photo" }, async (response) => {
  if (response.assets?.[0]) {
    const { fileName, type, uri } = response.assets[0];
    if (!uri) {
      throw new Error("No uri");
    }
    const resp = await uploadMobile({
      uri,
      type,
      name: fileName,
    });
  }
});
 
// Upload an array of JSON objects
const objects = [
  { name: "JSON 1", text: "Hello World" },
  { name: "JSON 2", trait: "Awesome" },
];
const jsonUris = await uploadMobile(objects);