Comments (3)
hi @Justin9606 ,
I use useMemo to increase performance.
The application has applied this package.
CH Play: https://play.google.com/store/apps/details?id=com.vngame.kingenglish
App store: https://apps.apple.com/us/app/king-english-game/id1601137730
const renderMain = useMemo(() => {
return (
<CurvedBottomBar.Navigator
style={styles.bottomBar}
strokeWidth={0.5}
height={scale(isIOS && hasNotch ? 60 : 50)}
circleWidth={scale(isIOS ? 60 : 50)}
bgColor={COLORS.PRIMARY}
initialRouteName="title0"
borderTopLeftRight
swipeEnabled={true}
renderCircle={({ selectedTab, navigate }) => (
<Animated.View style={styles.btnCircle}>
</Animated.View>
)}
tabBar={renderTabBar}>
<CurvedBottomBar.Screen
name="title1"
position="left"
component={({ navigate }) => <HomeScreen />}
/>
<CurvedBottomBar.Screen
name="title2"
component={({ navigate }) => <SettingScreen />}
position="right"
/>
</CurvedBottomBar.Navigator>
);
}, []);
from react-native-curved-bottom-bar.
hi @Justin9606 , I use useMemo to increase performance.
The application has applied this package. CH Play: https://play.google.com/store/apps/details?id=com.vngame.kingenglish App store: https://apps.apple.com/us/app/king-english-game/id1601137730
const renderMain = useMemo(() => { return ( <CurvedBottomBar.Navigator style={styles.bottomBar} strokeWidth={0.5} height={scale(isIOS && hasNotch ? 60 : 50)} circleWidth={scale(isIOS ? 60 : 50)} bgColor={COLORS.PRIMARY} initialRouteName="title0" borderTopLeftRight swipeEnabled={true} renderCircle={({ selectedTab, navigate }) => ( <Animated.View style={styles.btnCircle}> </Animated.View> )} tabBar={renderTabBar}> <CurvedBottomBar.Screen name="title1" position="left" component={({ navigate }) => <HomeScreen />} /> <CurvedBottomBar.Screen name="title2" component={({ navigate }) => <SettingScreen />} position="right" /> </CurvedBottomBar.Navigator> ); }, []);
Thank you. I have checked your app's tab switch is really faster than ours We will use also useMemo but if you have any other suggestion pls do let us know.
Thank you
from react-native-curved-bottom-bar.
Hi,
This issue has been resolved in version 2.0.0.
from react-native-curved-bottom-bar.
Related Issues (20)
- Is there a way to customise the centre floating button to be moved to the right end of the view? HOT 3
- 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
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.