hiding react native webview bottom status bar - react-native

I have a webview in React Native that has a text input box. When I focus on the text input box, a Safari status bar component shows up at the bottom of the view. Is there any way to prevent this?

It looks like a keyboardType prop
. A keyboardType
Determines which keyboard to open, e.g.numeric.
The following values work across platforms:
default
number-pad
decimal-pad
numeric
email-address
phone-pad
iOS Only
The following values work on iOS only:
ascii-capable
numbers-and-punctuation
url
name-phone-pad
twitter
web-search
try using a different keyboardType and check the difference.
Also, I'm not sure but you can try setting the backgroundColor of the WebView to transparent and the "border" won't be rendered.

Related

how to make the keyboard show search icon when searching ? (React-native)

I was wondering is it possible in react-native to when doing a search to search icon at the bottom corner like instagram.
Also is it possible using TextInput native Component
Like this:
You need to add returnKeyType as 'search' for your required keyboard.

How to let react-native picker showing items directly instead of dropdown box?

I am using react-native-picker. In iOS it displays as
I expect android could have the same UI but it always shows a dropdown box
Is there any library to support UI in Android the same way as iOS?
I haven't tested these packages on Android, but have you tried them?
Smooth Picker
React Native Scrollable Picker
ScrollView Picker
Scroll Picker
Let me know if they work for you.

react native avoid scrollview/flatlist shrinking while keyboard is open

In my react native app, I have a header with a search option and a body with content which is a flatlist and a footer. The flatlist is shrinking when the keyboard is active and my footer is showing above the keyboard.
I don't want to shrink flatlist while the keyboard is active or don't want to show the footer while the keyboard is active. how I can achieve that?
You can use KeyboardAvoidingView from react-native.
Please check your android manifest it should have
android:windowSoftInputMode="adjustPan"
something like this(please check this)

Is there a way to grab the keyboard search/return input in react-native-paper SearchBar?

I am working on a react native android app that needs a search bar. I am using the SearchBar from react-native-paper, and I checked their documentation and couldn't find any sort of way to find if the user pressed the little search button on their keyboard.
Not sure if there is an official name for this input or the button itself as I am unfamiliar with mobile app development, but here is an screenshot from the app in case it is unclear. I am referring to the search button on the keyboard itself, which is in this case blue.
From some digging I found out that TextInputs in react native have an onSubmitEditing={} that triggers whatever return key action you want.
Essentially I was wondering if there was an equivalent prop for the SearchBar in react-native-paper.
If you take a look at the implementation of react-native-paper SearchBar https://github.com/callstack/react-native-paper/blob/master/src/components/Searchbar.tsx it looks like you can pass a onSubmitEditing prop to it and, as react-native-paper uses a TextInput, that input will receive that prop
Ok so it seems that as tintef pointed out, you can just pass onSubmitEditing to the SearchBar since it uses a TextInput. I just tested this and it works perfectly!

How to hide the keyboard toolbar (InputAccessoryView) in WebView in React native? (iOS)

I use WebView in react native and when clicking input and the keyboard open i get with the keyboard toolbar (InputAccessoryView)
how i can hide this line? or control on this part, like change "done" text?
just referred the issues in react-native-webview and found an ios only props called hideKeyboardAccessoryView which may resolve this issue. following links are the way i find-out it and the source code reference . this feature available version 2.3.0 or greater
https://github.com/react-native-community/react-native-webview/issues/38
https://github.com/react-native-community/react-native-webview/pull/67