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
971 stars 59 forks source link

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

Open tomiwaajayi opened 5 months ago

tomiwaajayi commented 5 months ago

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

douglasjunior commented 5 months 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 5 months 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.

jayan2019 commented 1 week ago

Same issue is on happening on "expo": "^52.0.9" also!