LoginSignup
1
0

More than 5 years have passed since last update.

react-native-modalboxで<ScrollView>のスクロールが効かないとき

Last updated at Posted at 2018-08-08

<Modal>のoptionを確認してください

image.png

https://github.com/maxs15/react-native-modalbox/issues/38#issuecomment-181842648

swipeToClosetrueになっている場合(デフォルトはtrue)
下から上にスワイプする動作=onCloseになっているのでスクロールされません。

swipeToClose={false}にすると、動作します。

ex
// GOOD
  <Modal
    isOpen={IsOpen}
    swipeToClose={false}
  >
    <ScrollView>
    ...
    </ScrollView>

// BAD
  <Modal
    isOpen={IsOpen}
    // none or
    swipeToClose // =>true
  >
    <ScrollView>
    ...
    </ScrollView>
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0