Quantcast
Channel: Active questions tagged react-native+ios - Stack Overflow
Viewing all articles
Browse latest Browse all 16552

Can't dismiss menu selection IOS - React Native

$
0
0

I have an issue with the react-native-selection-menu: https://github.com/prscX/react-native-selection-menu

On IOS it's impossible to dismiss the menu without clicking on a value. I want to dismiss it when the user click outside of it or at least add a button cancel. By the way it works well on Android.

It seems this component doesn't take a props like isVisible so I can't dismiss it with a change in the state.

There is my code:

onPress(props) {
    RNSelectionMenu.Show({
      values: ['One', 'Two', 'Three', 'Four', 'Five'],
      selectedValues: [],
      selectionType: 0,
      title: 'Browse by category',
      presentationType: 0,
      enableSearch: false,
      cancellable: true,
      onSelection: selectedValues => {
        console.log('Selected Values: ' + selectedValues);
      },
      isVisible: false,
      // searchTintColor: "#FFFFFF",
    });
  }

Any help will be appreciated :) Thanks!


Viewing all articles
Browse latest Browse all 16552

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>