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

Crash Issue when double tap on pdf #25

Closed
ayanWappnet opened this issue Sep 18, 2024 · 4 comments
Closed

Crash Issue when double tap on pdf #25

ayanWappnet opened this issue Sep 18, 2024 · 4 comments
Labels
help wanted Extra attention is needed

Comments

@ayanWappnet
Copy link

ayanWappnet commented Sep 18, 2024

Here is my code for load pdf and i have crash issue when i double tap on pdf.can you please give me a suggestion for what should i do for that.

<View style={{ flex: 1, borderRadius: 24, overflow: 'hidden' }}>
          <PdfRendererView
            style={styles.pdf}
            source={source?.uri}
            maxZoom={6}
            singlePage={singlePage}
            distanceBetweenPages={16}
            onPageChange={(current, total) => {
              console.log('onPageChange', { current, total });
            }}
          />
        </View>
        
Style.tsx        
pdf: {
    backgroundColor: COLORS.primaryCheckThird,
  },
@douglasjunior
Copy link
Owner

Hi @ayanWappnet , please, provide more info about the crash:

  • What is the platform and version? Android or iOS
  • What is the version of React Native?
  • What is the log error message?

Can you reproduce the crash with the code of Sample project?

Just clone this repo and:

cd Sample
./install.sh

@douglasjunior douglasjunior added help wanted Extra attention is needed waiting for feedback Waiting for the author feedback labels Sep 18, 2024
@ayanWappnet
Copy link
Author

Hello @douglasjunior
platform:Android
react-native version : 0.72.6
no any log error

<View style={{ flex: 1, borderRadius: 24, overflow: 'hidden' }}>
          <PdfRendererView
            style={styles.pdf}
            source={source?.uri}
            maxZoom={6}
            singlePage={singlePage}
            distanceBetweenPages={16}
            onPageChange={(current, total) => {
              console.log('onPageChange', { current, total });
            }}
          />
        </View>
        
Style.tsx        
pdf: {
    backgroundColor: COLORS.primaryCheckThird,
  },

@douglasjunior
Copy link
Owner

If you have a crash, then should have a log error.

Probably there should be a native error on the Java side, so you need to use the Android Studio logcat to see them.

Debugging Native Code: https://reactnative.dev/docs/debugging-native-code

@douglasjunior
Copy link
Owner

Seems to be related to #26, please try with version 1.4.0.

@douglasjunior douglasjunior removed the waiting for feedback Waiting for the author feedback label Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants