react-native-keyboard-spacer icon indicating copy to clipboard operation
react-native-keyboard-spacer copied to clipboard

Update on new multiline height

Open ryandury opened this issue 7 years ago • 6 comments

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.

ryandury avatar Mar 05 '17 01:03 ryandury

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?

Andr3wHur5t avatar Mar 05 '17 02:03 Andr3wHur5t

@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.

charlle avatar Apr 11 '17 21:04 charlle

@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.

Andr3wHur5t avatar Apr 25 '17 18:04 Andr3wHur5t

@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.

wrightmk avatar Jul 14 '17 00:07 wrightmk

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

benevbright avatar Dec 12 '17 11:12 benevbright

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?

timnovis avatar Jun 05 '18 12:06 timnovis