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

Bottom padding to <CurvedBottomBar.Navigator /> component style #60

Open
alexandermirzoyan opened this issue Apr 15, 2023 · 1 comment

Comments

@alexandermirzoyan
Copy link

I am facing such an issue when I want to set a space from bottom of <CurvedBottomBar.Navigator /> component.

<CurvedBottomBar.Navigator
  style={styles.bottomBar}
  shadowStyle={styles.bottomBarShadow}
>
  {...}
</CurvedBottomBar.Navigator>

const styles = StyleSheet.create({
  bottomBar: {
    backgroundColor: 'yellow',
    paddingBottom: scale(20),
  },
  bottomBarShadow: {
    backgroundColor: 'red',
    shadowColor: '#000',
    shadowOffset: {
      width: 0,
      height: 0.5,
    },
    shadowOpacity: 0.2,
    shadowRadius: 1.41,
    elevation: 1,
  },
});

image

When I remove backgroundColor property from bottomBarShadow selector, the bottomBar selector's color renders in that place, and there is no way to set color to only bottom part.

Screenshot 2023-04-15 at 20 17 22

@dante-cervantes-rocketlab

hi @alexandermirzoyan i was able to fix the issue wrapping the CurvedBottomBar into a View, and apply the styles to that view.

i.e

<View style={{ flex: 1, paddingBottom: 20, backgroundColor: 'black' }}>
   // your CurvedBottomBar here
</View>

Captura de pantalla 2023-12-10 a la(s) 22 18 33

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