Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how can i show loading & error image now? #173

Open
pzw224 opened this issue Sep 4, 2018 · 0 comments
Open

how can i show loading & error image now? #173

pzw224 opened this issue Sep 4, 2018 · 0 comments

Comments

@pzw224
Copy link

pzw224 commented Sep 4, 2018

loadingIndicatorSource is only work on ios.
and onError is not work


<PhotoView ref={(ref) => { this.photoView = ref }} source={{ uri: image.url }}
loadingIndicatorSource={ImageResource.Other.Default}
minimumZoomScale={1}
maximumZoomScale={3}
androidScaleType="center"
resizeMode={Platform.OS === "android" ? "" : "contain"}
onError={() => { console.log("I'm error") }}
style={{
backgroundColor: colors.text_dark,
width: productPresenter.GLOBLEWIDTH,
height: productPresenter.GLOBLEHEIGHT - translateOnWidth(68),
justifyContent: 'center',
alignItems: 'center'
}} />

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant