0

After upgrading react-native to version 0.71.3, the ScrollView passed as a children to react-native-popover-view is no longer scrollable in android but works in iOS. It used to work before the upgrade of react-native version

` import React from 'react'; import Popover from 'react-native-popover-view';

function App() {
  return (
    <Popover
      from={(
        <TouchableOpacity>
          <Text>Press here to open popover!</Text>
        </TouchableOpacity>
      )}>
      <ScrollView contentContainerStyle={{ flexGrow: 1, paddingTop: 20 }}>
           {[...new Array(100)].map((item, index) => (
            <Text key={index}>{`${index}. Welcome to React native`}</Text>
           ))}
      </ScrollView>
    </Popover>
  );

} `

3
  • I'm having this problem too. Did you find a fix? Commented Jun 20, 2023 at 9:46
  • No, not able to fix it. Commented Jun 21, 2023 at 10:06
  • For what it's worth, I downgraded to React Native 0.70.10 (from 0.71.10) and it worked. Commented Jun 21, 2023 at 10:09

1 Answer 1

1

You can try changing:

  1. import { ScrollView } from 'react-native'
    to import { ScrollView } from 'react-native-gesture-handler';

  2. backgroundStyle={{ backgroundColor: Platform.OS === "ios" ? "transparent" : "rgba(23,31,36,0.2)" }}

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.