Andr3wHur5t / react-native-keyboard-spacer

Plug and play react-native keyboard spacer view.
MIT License
1.56k stars 219 forks source link

Update on new multiline height #49

Open ryandury opened 7 years ago

ryandury commented 7 years ago

Hey, any support for multilines that adapt to the content height? I've got a listener on my TextInput that will adjust itself based on the content height. The KeyboardSpacer doesn't appear to adjust height based on the new height of the multiline.

Andr3wHur5t commented 7 years ago

Hmm, I don't think I understand your situation.

The keyboard spacer in most situations should only need to accommodate the keyboard.

Can you post a screenshot or gif?

charlle commented 7 years ago

@Andr3wHur5t the Keyboard Spacer needs: componentWillReceiveProps to allow topSpacing to receive a dynamic property, which will update the Keyboard spacing. This will solve @ryandury problem.

Andr3wHur5t commented 7 years ago

@charlle wouldn't the input be on top of the keyboard?

Unless I'm missing something, I would think that top spacing would only create a gap between the keyboard and the input.

wrightmk commented 7 years ago

@charlle Could you explain your answer a little further. I'm also having a similar problem when using KeyboardSpacer in conjunction with TabNavigator from react-navigation. As it stands, the text area is raised above the keyboard the same distance as the tab navigator.

benevbright commented 6 years ago

Same problem when I'm using TabNavigator. Any update?

timnovis commented 6 years ago

Sorry to resurrect such an old issue, but I'm also having the same issue when using this module with React Navigation inside a TabNavigator view.

screen shot 2018-06-05 at 13 12 59

Is there a solution I've missed?