Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to show picker in a model (dialog)? #81

Closed
haydenluo opened this issue Oct 24, 2016 · 5 comments
Closed

Is it possible to show picker in a model (dialog)? #81

haydenluo opened this issue Oct 24, 2016 · 5 comments

Comments

@haydenluo
Copy link

I'd like to after I call picker.show(), no other parts of parent view could be clicked(or touched).

@xwenliang
Copy link
Member

means you want a mask?

@haydenluo
Copy link
Author

Yes. Is it possible to add an extra parameter(may be 'modelMode') in picker.Init() method, to enable such behavior?
This is a new requirement, not issue, but I can't find where to submit new requirement, so post it here.

@vivaxy
Copy link

vivaxy commented May 29, 2017

@haydenluo Did you managed to do it? I tried to use Modal along side with Picker, but the picker is covered by Modal. #148

@mykelaballe
Copy link

also having this issue on iOS. its fine on Android

@KingDr
Copy link

KingDr commented Jun 22, 2017

It's very simple.
try this:

<Container>
<Content>
<YourViewComponent />
</Content>
{this._renderBgmask()}
</Container>

while the function is

if (this.state.showbg) {
            return (
                <View style={{position:'absolute', top: 0, bottom: 0, left:0, right: 0, backgroundColor:'rgba(20,20,20, 0.3)'}}>
                </View>
            )
        } else {
            return null;
        }

rodolphefauquez pushed a commit to Clintal/react-native-picker that referenced this issue Feb 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants