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

[BUG] paddingBottom styling property is forced to zero on Android #568

Open
alexisdelage opened this issue May 19, 2023 · 3 comments
Open

Comments

@alexisdelage
Copy link

Description

On the FormScrollView component, when passing custom styles to the prop contentContainerStyle as an array, the property paddingBottom is override to 0 on Android.

Exemple

 <KeyboardAwareScrollView
      enableOnAndroid
      contentContainerStyle={[
        { flexGrow: 1 },
        { paddingBottom: 75 },
      ]}
    />

Result: The paddingBottom is applied on iOS but not on Android.

Possible cause

The paddingBottom property is override at this line in the code:

((contentContainerStyle || {}).paddingBottom || 0) +

It checks if a paddingBottom property is present on the contentContainerStyle object before setting it zero, but it does not handle the case where contentContainerStyle is an array (which can be the case according to the type of StyleProp<ViewStyle> of React Native

@VictorPulzz
Copy link

Same for me

@VictorPulzz
Copy link

@slorber My be you check this?

@slorber
Copy link
Collaborator

slorber commented Jun 9, 2023

I am not maintaining this library and haven't used RN recently

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

3 participants