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

In svg element "d" height and circleWidth gets wrong value because of "scale()" function #1

Closed
ae-loggma opened this issue Sep 22, 2022 · 3 comments

Comments

@ae-loggma
Copy link

Screen Shot 2022-09-22 at 17 45 40

const height = scale(iHeight); const circleWidth = scale(centerWidth) + scale(16);

"scale()" function works fine for bigger screen but in my example I use iPhone 8 emulator and there is a space bottom of SVG element. Maybe issue related to your repo (react-native-curved-bottom-bar) however problem in function. Would you check it please ?

@hoaphantn7604
Copy link
Owner

hi @ae-loggma ,
Can you send the full code for me to check?

@ae-loggma
Copy link
Author

hi @ae-loggma , Can you send the full code for me to check?

Can not share too much info because of company policy, Here is the detail of bottom bar

<CurvedBottomBar.Navigator ref={tabMenu} strokeWidth={1} height={70} circleWidth={65} bgColor="#FFFFFF" initialRouteName="first" borderTopLeftRight renderCircle={() => <CircleComponent/>} tabBar={renderTabBar}>

issue only related this device, it's looks fine for newest phones or tablets

@hoaphantn7604
Copy link
Owner

hi @ae-loggma ,
This issue is resolved.

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

2 participants