react-native-photo-view icon indicating copy to clipboard operation
react-native-photo-view copied to clipboard

Not able to show local images stored in phone document directory ?

Open ios-dev-newbie opened this issue 6 years ago • 1 comments

I am using a photo-view to show images stored in local document directory. But photo-view is failed to show it.

<PhotoView source={{uri: (DocumentDirectory + relativePath)}} onScale={this._onScale} onTap={this._onTap} onViewTap={this._onViewTap} onLoadStart={this._onLoadStart} onLoad={this._onLoad} onLoadEnd={this._onLoadEnd} showsVerticalScrollIndicator={true} showsHorizontalScrollIndicator={true} minimumZoomScale={0.5} maximumZoomScale={3} style={styles.photo} /> </View>

where relative path is /2425032310/sample_image.jpeg document directory is /Users/abc/Library/Developer/CoreSimulator/Devices/87643631-5456-2463-B111-54E3B04527EF/data/Containers/Data/Application/A0B084C8-98D6-4364-A79B-D90187E9F4F5/Documents/example

sample_image

ios-dev-newbie avatar Mar 27 '18 05:03 ios-dev-newbie

See #154

andr3a88 avatar May 08 '18 12:05 andr3a88