Closed hirbod closed 1 year ago
I got around this with this hack:
<>
<KeyboardAccessoryView
...
addBottomView={false}
/>
<View
style={{
backgroundColor: PlatformColor("systemBackground"),
position: 'absolute',
bottom: 0,
right: 0,
left: 0,
height: useSafeAreaInsets().bottom,
}}
/>
</>
Thanks. I already made a PR working around this issue though.
Well if this PR never makes it in, above is an easy win!
True. Tbh, I wish I had that hack handy while I was searching for a solution :D. It tooked way more time for me than I thought.
@hirbod Hi. You can follow PR #2013 for this feature
Description
I am using
KeyboardTrackingView
. I addedaddBottomView
since I have to useuseSafeArea
prop. Working extremely well, but the added bottomView is always white and I can't change the backgroundColor.I've inspected the native code and its a fixed value https://github.com/wix/react-native-ui-lib/blob/6496cb2a5b18a42699bf4293eb31a80d131f2be8/lib/ios/reactnativeuilib/keyboardtrackingview/KeyboardTrackingViewTempManager.m#L452
Related to
Steps to reproduce
Add
addBottomView
toKeyboardTrackingVIew
Expected behavior
I should be able to set the color of addBottomView, either directly with
backgroundColor
viastyle
, or as a separate propbottomViewColor
Actual behavior
Can't set the color, it is always white
More Info
Code snippet
Screenshots/Video
Environment
Affected platforms