Skip to content

Rendering large image #5

Description

@1appstudio

Code used:

imageComponent = {
(

                          imageProps: { 
                            
                          }, 
                          index: number) => 
                             {   
                                       return(

                                        <View style= {{ flex:1, justifyContent: 'center', alignItems: 'center'} }>
                                                <View  style= {{flex:1, justifyContent: 'center', alignItems: 'center' }}>
                                                          <ActivityIndicator size="large" color="white" />
                                                </View>

                                                <View  style= {{position: 'absolute',alignItems: 'center',justifyContent: 'center',
                                                        eft: 0,right: 0,top: 0,bottom: 0, }}>
                                                        <FadeIn>
                                                          <View>
                                                            <Image {...imageProps} />
                                                          </View>
                                                         </FadeIn>
                                                </View>

                                          </View>


                                            );
                                     
                              }
                      }

I am using iPhone 6plus. while loading large image like panorama wide angle images, the app crashes. How can i fix this issue?

errorComponent
Custom function to render the page of an image that couldn't be displayed. The default is a with a stylized error.

How can i use this error component. can you please share the code to use? or is there any other way to load the large images?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions