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

setExtrasVisible can't change via context #53

Open
pandiarajanvp opened this issue Oct 31, 2021 · 0 comments
Open

setExtrasVisible can't change via context #53

pandiarajanvp opened this issue Oct 31, 2021 · 0 comments

Comments

@pandiarajanvp
Copy link

When we try to update context setExtrasVisible as true or false its not trigger the multibar open icon

its response as extrasVisible: {"data": [[Function anonymous], [Function anonymous], [Function anonymous], [Function anonymous]], "extrasVisible": false, "overlayProps": {"expandingMode": "staging", "iconSize": 50, "overlayRadius": 100}, "setExtrasVisible": [Function bound dispatchAction]}

class Home extends PureComponent {
static contextType = HeaderHeightContext;
static contextType = MultiBarContext;
closeBarBtn=()=>{
this.context.setExtrasVisible(false);
}

}

Bottom Navigator Enclosed with

<MultiBarProvider
overlayProps={{
expandingMode: 'staging',
iconSize: 50,
overlayRadius: 100,
}}
data={[
({params}) => (
<TouchIcon
name="create"
color="royalblue"
size={40}
onPress={() => {
return RootNavigation.navigate('Homes', {
screen: 'screen1',
});
}}
/>
), ({params}) => (
<TouchIcon
name="create"
color="royalblue"
size={40}
onPress={() => {
return RootNavigation.navigate('Homes', {
screen: 'screen2',
});
}}
/>
),
]}
iconSize={40}
overlayRadius={100}
initialExtrasVisible={false}>

<Tab.Navigator>
.....
</Tab.Navigator>

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

1 participant