douglasjunior / react-native-keyboard-manager

⚛ Library to prevent issues of keyboard sliding up and cover inputs on React-Native iOS projects.
https://www.npmjs.com/package/react-native-keyboard-manager
MIT License
933 stars 59 forks source link

Toolbar hides once I start Typing (both on simulator and physical device) #112

Open tomiwaajayi opened 1 week ago

tomiwaajayi commented 1 week ago

https://github.com/douglasjunior/react-native-keyboard-manager/assets/16718548/de12b51a-b936-4975-bb83-651711ba27f8

douglasjunior commented 1 week ago

You have upgraded from expo 50 to 51? On version 50 was working fine?

Please, provide the configuration used in the KeyboardManager.

tomiwaajayi commented 1 week ago

Hi @douglasjunior Yes it was working fine on Version 50.

Her's the config I used

 if (Platform.OS === 'ios') {
  KeyboardManager.setEnable(true)
  KeyboardManager.setEnableDebugging(true)
  KeyboardManager.setKeyboardDistanceFromTextField(30)
  KeyboardManager.setLayoutIfNeededOnUpdate(true)
  KeyboardManager.setEnableAutoToolbar(true)
  KeyboardManager.setToolbarDoneBarButtonItemText('Done')
  KeyboardManager.setToolbarManageBehaviourBy('subviews') // "subviews" | "tag" | "position"
  KeyboardManager.setToolbarPreviousNextButtonEnable(true)
  KeyboardManager.setToolbarTintColor('#2C67F6') // Only #000000 format is supported
  KeyboardManager.setToolbarBarTintColor('#f6f6f6') // Only #000000 format is supported
  KeyboardManager.setShouldShowToolbarPlaceholder(false)
  KeyboardManager.setOverrideKeyboardAppearance(false)
  KeyboardManager.setKeyboardAppearance('default') // "default" | "light" | "dark"
  KeyboardManager.setShouldResignOnTouchOutside(true)
  KeyboardManager.setShouldPlayInputClicks(true)
}

I also tried using it without defining any config and it was the same.