Closed aminerol closed 2 years ago
The contentContainerStyle will be applied through a new View component inside the ScollView, by moving the mentioned line up, it would apply the style prop twice.
but i can't center the children only after moving this lineup and set contentContainerStyle to {flexGrow: 0.8, justifyContent: 'center'}, any idea on how i would achieve that
Sorry for the ultra late response. Do you still have the issue?
sometimes you might want to set contentContainerStyle through props, moving up the line 102 will make this happen https://github.com/zobeirhamid/react-native-scrollable-navigation-bar/blob/d8ae360c8dcda5f823f183d85a9fdf49ea4d297f/src/api/CustomScrollView.tsx#L102