react-native-pdf icon indicating copy to clipboard operation
react-native-pdf copied to clipboard

Scrolling PDF is laggy on android but smooth on ios

Open DebNeUIbm opened this issue 3 years ago • 7 comments

What react-native version are you using? 0.65.1

What react-native-pdf version are you using? 6.4.0

What platform does your issue occur on? (android/ios/both) android

Describe your issue as precisely as possible :

  1. Steps to reproduce the issue or to explain in which case you get the issue
         <View style={{ flex: 1 }}>
            <ScrollView contentContainerStyle={{ flex: 1 }}>
              <Pdf
                source={{
                  uri,
                  cache: true,
                }}
                style={{ flex: 1 }}
                onError={(error) => { console.error(error); }}
              />
            </ScrollView>
          </View>
   Using the react-native-pdf package like above, tried with and without the surrounding View tag, but in android scrolling 
   behaviour is still choppy.

DebNeUIbm avatar Feb 16 '22 11:02 DebNeUIbm

I've found a workararound, see: https://github.com/wonday/react-native-pdf/issues/448#issuecomment-1117216273

JeffreyVanelderenACA avatar May 04 '22 11:05 JeffreyVanelderenACA

Adding a scrollView solves the scrolling issue, but then you lose the ability to pinch & zoom. Issue is still a problem

KarlyLamm avatar Feb 08 '23 18:02 KarlyLamm

Any fixes for this, the pinch & zoom seems to be a problem. It seems to pinch on steps on android, iphone works correctly

Niltonsf avatar Feb 12 '23 00:02 Niltonsf

Any luck on this?

LyDawei avatar Jun 01 '23 19:06 LyDawei

Unfortunately not

Niltonsf avatar Jun 02 '23 19:06 Niltonsf

Any luck on this?

Fagner3g avatar Aug 15 '23 16:08 Fagner3g