Disable fill suggestions on React Native Android - react-native

when I use my application on my Android (Xiaomi), I have this kind of suggestion that appear below (or above) my TextInputs even when they are textInputs that can receive codes, postal addresses, ...
I already tried "autocomplete=off" and I saw that there was a hack with "keyboardType=visible-password" but I can't afford to use this keyboard for some fields.
How can I disable this kind of autocomplete for my TextInputs?
Thanks,
Viktor

Related

Customising alerts in react-native

Is there any way of customising native Alert component so it'll accept some components(like inputs and so on..) ? Please DO NOT suggest using some modals from npm and constructing something by hand, I know about these approaches...
I'm interested, if it's possible to render children components inside of native alert, because it accepts only title, message and actions and nothing else...
more than text input no and it only work for ios,from docs for ios yes(text input) alert ios,but you can't really customize it
even in native ios you can't customize it more than how is it
This is an API that works both on Android and iOS and can show static alerts. To show an alert that prompts the user to enter some information, see AlertIOS; entering text in an alert is common on iOS only.
link to it https://reactnative.dev/docs/alert

React native turn by turn navigation

we working with expo and using mapview, however, there are many restrictions in react native maps, as we are planning to implement turn by turn navigation. Integrating Mapbox would have been the best option, however we do not think it’s best to eject the project as expo doesn’t still support Mapbox. Although, I came across a package, react native maps navigation, I would like to know if anyone has been able to successfully implement it in their project and it functioned properly, and also know if there are any drawbacks that comes along with it. I am asking this because the author says “Please note that this module is usable but still under heavy development. Some properties and/or component names might change without notice.”
Kindly give your suggestions and advice. Thanks
Mapbox works very well in a react-native projects and recommend to use this service for your project but effectively, it don't works with expo so for me, you should eject your project to use it.
I paste here some packages I used for a GPS project (The last one is to get the current position of an user)
react-native-mapbox-gl/maps
mapbox-sdk
react-native-geolocation
Hope that could help you

Fonts getting cut down in react native on One Plus, Oppo etc

I am facing a very rare and unseen issue that the fonts are getting worn out on some of the devices like the One Plus, Oppo etc.
I don't know what's the reason behind that. But this is a device specific issue on some devices only.
Well, If anyone comes across the same problem I have the solution for them :
Add a space " " at the end of the text
Give the Text a set width.
There is a proposed component at the bottom of the issue.
You can refer to this react native issue link
Also, this expo link helps
But, my main concern is these all are hacks. Is there any rock solid answer to solve these things? Why to do extra work, why can't react native solve that? Or are there any permanent solutions to fix this?
Please don't mark it as duplicate. I have the answer, I want to know the reason or any global answer to solve that in one go. I dont want to change all my 1000 text styles. :(

React Native inputs on iOS and Android

I've been evaluating React Native as a replacement for Cordova, and was wondering if there is a widely accepted solution for styled text inputs. I'd like to see text inputs rendered in Material Design on Android, and Apple style on iOS.
Do you have recommendations for a specific library, or will I have to write my own/combine multiple libraries? Thank you!
You could check out https://nativebase.io/ it supports platform specific default styling there are others as well like https://react-native-training.github.io/react-native-elements/ and http://www.xinthink.com/react-native-material-kit/ which has consistent styling regardless of platform.
Coming from a Cordova/Sencha Touch background I suggest you try to create your own style using only the default react native components, the reason is that before I was having the same question regarding component library that I could use so that I could target all platform at once, but react native isn't 100% cross platform and learning to style on different platform might give you an idea and feedback with your evaluation, unless your aiming to have a project as soon as possible and that is a different story.

Is AlertIOS in React Native an outdated component?

I am learning React Native and what I am learning from only talks about Alert, even for iOS. In the API/Docs I see AlertIOS and I am curious if it does something special or is lighter weight for an iOS only app than the regular Alert?
(I found no post that had a definitive answer, but all the AlertIOS posts seem to date back to 2015-ish.)
Thank you.
AlertIOS is special as it allows users to enter information into the alert using AlertIOS.prompt. According to the React Native documentation this is only a common pattern on iOS which is why they only made it available with an iOS specific API.
React Native still supports and recommends using Alert if you do not need iOS specific functionality.
From the alert docs
This is an API that works both on iOS and Android and can show static
alerts. To show an alert that prompts the user to enter some
information, see AlertIOS; entering text in an alert is common on iOS
only.
From the alertIOS docs
We recommend using the Alert.alert method for cross-platform support
if you don't need to create iOS-only prompts.