3

我正在尝试使用一些分页内容(左右滑动)的垂直滚动屏幕。

在分页的内容中,放置了另一个带有部分的框,它有自己的水平分页,每个子页面上都有垂直滚动。

这在 iOS 上是开箱即用的,但在 android 上,我无法在嵌套的分页滚动视图中水平滚动。但它是水平的子滚动视图工作正常。

我已经尝试了snestedScrollEnabled道具的所有不同组合。<ScrollView>包括将它们放在无和所有滚动视图上。

这已经在 Expo 和独立的 React Native 应用程序上进行了测试,包括在 appetize 模拟器和小米 Pocophone F1 上。相同的行为,没有水平嵌套滚动。

代码在这里 https://snack.expo.io/@esbenvb/scrollview-tests

Android 行为 https://vimeo.com/322265966

iOS 行为 https://vimeo.com/322266040

  React Native Environment Info:
    System:
      OS: macOS 10.14.3
      CPU: (12) x64 Intel(R) Core(TM) i7-8850H CPU @ 2.60GHz
      Memory: 331.47 MB / 16.00 GB
      Shell: 3.2.57 - /bin/bash
    Binaries:
      Node: 10.12.0 - /usr/local/bin/node
      Yarn: 1.10.1 - /usr/local/bin/yarn
      npm: 6.4.1 - /usr/local/bin/npm
      Watchman: 4.9.0 - /usr/local/bin/watchman
    SDKs:
      iOS SDK:
        Platforms: iOS 12.1, macOS 10.14, tvOS 12.1, watchOS 5.1
      Android SDK:
        API Levels: 23, 25, 26, 27, 28
        Build Tools: 26.0.2, 26.0.3, 27.0.3, 28.0.2, 28.0.3
        System Images: android-25 | Google Play Intel x86 Atom, android-26 | Google Play Intel x86 Atom, android-28 | Google APIs Intel x86 Atom, android-28 | Google Play Intel x86 Atom
    IDEs:
      Android Studio: 3.3 AI-182.5107.16.33.5199772
      Xcode: 10.1/10B61 - /usr/bin/xcodebuild
    npmPackages:
      react: 16.6.3 => 16.6.3 
      react-native: 0.58.6 => 0.58.6 
4

0 回答 0