Qiita Conference 2025

tenntenn (@tenntenn)

好奇心を原動力に行動するソフトウェアエンジニアになるために

1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

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

Qiita Conference 2025 will be held!: 4/23(wed) - 4/25(Fri)

Qiita Conference is the largest tech conference in Qiita!

Keynote Speaker

ymrl、Masanobu Naruse, Takeshi Kano, Junichi Ito, uhyo, Hiroshi Tokumaru, MinoDriven, Minorun, Hiroyuki Sakuraba, tenntenn, drken, konifar

View event details
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?