Comments (12)
hi @buscanopaul ,
You can refer to Ex:
import React, { useImperativeHandle } from 'react';
import { View } from 'react-native';
import { styles } from './styles';
export const HomeScreen = React.forwardRef((props, ref) => {
useImperativeHandle(ref, () => {
return { reload: reload };
});
const reload = () => {
// Events
};
return <View style={styles.main} />;
});
You get curentRef then call reload function.
from react-native-curved-bottom-bar.
You cannot pass inside a stack of react-navigation. replace by a single component.
Using "const { navigate } = useNavigation()" to navigate inside
from react-native-curved-bottom-bar.
Hi @hoaphantn7604, Thank you for your response.
My main issue was I can't reset the nested stack navigator or go back to initial route stack navigator when I click again the bottom navigation icon (home). Please refer screenshot below
In the screenshot Instead of click the back button to reset the nested stack navigator. I want to reset it when I click the home icon again. Just like the default react navigation bottom tab behavior.
Here's my app.js
<NavigationContainer> <TabNavigator /> </NavigationContainer>
In my TabNavigator.js. I'm just using the Example 1 template just replace View with my stack navigator component
<CurvedBottomBar.Screen name="Home" position="left" component={({ navigate }) => ( <HomeStackNavigator /> )} />
My HomeStackNavigator.js
<Stack.Screen name="Home" component={HomeScreen} />
<Stack.Screen name="Transactions" component={TransactionsScreen} />
I hope you understand. Thank you
from react-native-curved-bottom-bar.
I have the same problem as you, but I don't have a solution, I hope someone can help me, thank you.
from react-native-curved-bottom-bar.
https://github.com/hoaphantn7604/react-native-template-components
You can refer to the way that I navigate.
from react-native-curved-bottom-bar.
Hi @hoaphantn7604, Do you have unmountOnBlur options on the CurvedBottomBar.Screen? I want to reset the stack navigator every time I want to click the bottom icons.
Example:
<CurvedBottomBar.Screen name="Home" position="left" component={({ navigate }) => ( <HomeStackNavigator /> )} // unmountOnBlur={true} // options={{unmountOnBlur: true}} />
from react-native-curved-bottom-bar.
Hi @hoaphantn7604, Do you have unmountOnBlur options on the CurvedBottomBar.Screen? I want to reset the stack navigator every time I want to click the bottom icons.
Example:
<CurvedBottomBar.Screen name="Home" position="left" component={({ navigate }) => ( <HomeStackNavigator /> )} // unmountOnBlur={true} // options={{unmountOnBlur: true}} />
Hi @buscanopaul,
Can you describe your request in more detail?
from react-native-curved-bottom-bar.
Cant add more than 3 CurvedBottomBar.Screen
from react-native-curved-bottom-bar.
This issue has been resolved in version 2.0.0.
from react-native-curved-bottom-bar.
@hoaphantn7604 Mr Admin! Kindly help me to solve the issue.
i want more detailed answer for issue raised by @buscanopaul. Instead of click the back button to reset the nested stack navigator. I want to reset it when I click the home icon again. Just like the default react navigation bottom tab behavior.
this is one of the issue i hassle to use this library but i love this library can you add default navigation behaviour reset the nested stack navigator thankyou
from react-native-curved-bottom-bar.
@hoaphantn7604 Mr Admin! Kindly help me to solve the issue. i want more detailed answer for issue raised by @buscanopaul. Instead of click the back button to reset the nested stack navigator. I want to reset it when I click the home icon again. Just like the default react navigation bottom tab behavior. this is one of the issue i hassle to use this library but i love this library can you add default navigation behaviour reset the nested stack navigator thankyou
Hi, have you managed to fix this, or find a workaround ?
from react-native-curved-bottom-bar.
from react-native-curved-bottom-bar.
Related Issues (20)
- setVisible set to true cant show again the tab bar
- react-native-curved-bottom-bar doesn't seem to be linked.make sure:
- react-native-curved-bottom-bar doesn't seem to be linked.make sure: HOT 7
- Support screen options HOT 7
- Perfomance when wrap bottom bar with Stack.Navigator HOT 8
- Lagging while clicking the tabs HOT 2
- Can we add borderColor and borderWidth to curved tab HOT 6
- Render all tabs at startup/mounting HOT 3
- Bottom padding to <CurvedBottomBar.Navigator /> component style HOT 1
- [Android] Shadow issue on Expo HOT 4
- Work with expo-router
- options={{headerShown: false}} in CurvedBottomBar.Screen is not working HOT 8
- headerShown is false HOT 7
- i am trying to show component when user click on middle circle <Animated.view
- Dynamic changing of icon
- Border Width and Radius issue HOT 1
- custom curves HOT 1
- Navigating to stack with curved bottom bar shows white screen HOT 1
- strokeColor and strokeWidth issue on V3 HOT 1
- Curved Border colour and border width
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-curved-bottom-bar.