maurisdev / react-native-images-combine

React Native Library for combining images
9 stars 8 forks source link

URI/temp file images cannot be converted #1

Closed FrederickEngelhardt closed 4 years ago

FrederickEngelhardt commented 4 years ago
 const snap = await this.mapview1.current.takeSnap(true) uri or base64 return
  const snap1 = await this.mapview2.current.takeSnap(true) // uri or base64 return
  ImagesCombineLibrary.combineImages([
    Image.resolveAssetSource(snap),
    Image.resolveAssetSource(snap1),
  ]).then(base64 => {})

This fails. Is there plan to support base64 or dynamic files?

FrederickEngelhardt commented 4 years ago

Solution:

 const snap = await this.mapview1.current.takeSnap(true) uri or base64 return
  const snap1 = await this.mapview2.current.takeSnap(true) // uri or base64 return
  ImagesCombineLibrary.combineImages([
    {uri: snap},
    {uri: snap}
  ]).then(base64 => {})
FrederickEngelhardt commented 4 years ago

See #2 for a documentation update