React-native-modal: supportedOrientations warning on lastest version (v6.3.0)

Created on 6 Jul 2018  路  3Comments  路  Source: react-native-modal/react-native-modal

After upgrade from version 6.1.0 to 6.3.0, this warning appears:

simulator screen shot - iphone 8 - 2018-07-06 at 11 17 37

My modal doesn't even have supportedOrientations prop:

      <Modal
        style={styles.modal}
        isVisible={isVisible}
        backdropOpacity={0.3}
        onBackdropPress={onPressOutside}
      >
        <View style={styles.container}>
          <FlatList
            data={categories}
            keyExtractor={this.keyExtractor}
            renderItem={({ item }) => this.renderItem(item, () => onItemSelected(item))}
          />
        </View>
      </Modal>

I tried to add supportedOrientations={["portrait"]} but the warning still persists.

Most helpful comment

The warning is gone with v6.4.0. Thanks for the quick fix!

All 3 comments

Hi! The warning was fixed in the other pull request I made, just waiting for @mmazzarolo to make a new release with it and it should be all good! Sorry for the inconvenience!

@kientux could you check if the warning still persists on v6.4.0?

The warning is gone with v6.4.0. Thanks for the quick fix!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

TaraSinghDanu picture TaraSinghDanu  路  3Comments

stonepreston picture stonepreston  路  4Comments

onfuns picture onfuns  路  3Comments

ChristianTucker picture ChristianTucker  路  4Comments

abdulrahman-khankan picture abdulrahman-khankan  路  4Comments