score:0

Accepted answer

you can use ref='picker' for your parent component and refer to it by this.refs.picker

<modalpicker
    data = {[
        {key: '1', label: '1'},
        {key: '2', label: '2'},
        {key: '3', label: '3'}
    ]}
    ref='picker'
    initvalue = 'select option'
    selectstyle={{
        height: 200
    }}>
    <navigationbar
        title={{ title: "modaltest" }}
        rightbutton={{ title: "open modal",
        handler: () => this.refs.picker.open() }}
    />
 </modalpicker>

Related Query

More Query from same tag