Have you any ideas concerning a KeyboardType for research. I searched and I didn't find any information about that.
In example, in Android, replace the button "Ok" by an icon or another text. Hope there is a KeyboardType specified for research. I don't really want to custom the Keyboard, I think it's not really so easy...
It need to work on IOS and Android
I you are using a TextInput component, you can try the props returnKeyType and keyboardType. They both customize the keyboard layout and works on android and iOS.
Related
So we have input text component which we are using it as a contact form where its working normally when we test it on Web/Desktop version. The issues occurs whenever we use test on iPhone its not accepting the the value. eg; O'Connor.. or whatever that goes with apostrophe.. I have used the multiple encoding ways but it still no use.
Any help would be really appreciated..
This may or may not be related to your issue, but I discovered today that React Native's TextInput feature, on iOS, handles apostrophes and quotation marks in a strange way (which I have not observed with other punctuation). When you enter either character, it calls onSelectionChange twice before it calls onChangeText, which caused very strange behavior in a custom text input component. Possibly this is a result of some auto-formatting feature baked into iOS, and if so that might be part of your issue, even in a React web environment.
I know this is about 10 months old but I actually just ran into a similar issue. I think this smart quotes issue.. IOS is changing the apostrophe to a right-single quote.
Try this var goodQuotes = badQuotes.replace(/[\u2018\u2019]/g, "'");
and for more information I got it from here.
I was wondering if there is any place where I can find what platform API React Native (iOS for example) support and what it does not.
I’m looking for a list preferably like that
Geolocation : supported
Calendar: Not supported
Vibration: supported and so on..
Anything near that where I can find those information would be really great!
The component is always updated but for now its
Basic Components includes View, Text, Image, TextInput, ScrollView, StyleSheet
User Interface includes Button, Picker, Slider, Switch
List Views includes FlatList, SectionList
There are other components specific for both IOS and Android and other components
You can check out the following link:
https://facebook.github.io/react-native/docs/components-and-apis.html
it shows the supported components and API's for both IOS and Android
Check this link stack overflow question. You may find some answers there
You can also look at this issue on github
I am working on a react-native application based on expo.
My problem is that I am trying to find a solution to make the default options on inputs : paste cut select select all...
and the default actions on the camera: take picture... uses the default language of the mobile phone and not all the time English.
is there a way to do this ?
Well, you need to change the language of your phone and ABSOLUTELY reboot so it can work.
I'm trying to make a js macro which will fill 3 inputs needed for login. I need to make this a lot of times in a day, so this would help a lot.
The problem is that something so simple like:
input_name.value = 'somevalue'
won't work, because the page I'm login into is using React.
I think I need to simulate pressing a keyboard key somehow.
Is it possible? I tried a lot of methods, but none worked.
I also tried few Chrome plugins for this (like iMacros), but all of them doesnt 'trigger' React's mechanism.
Anyone have some solution?
iMacros should be able to simulate keypress using firefox/chrome plugins. iMacros EVENT Documentation
If that doesn't work you could use a hardware solution such as a Teensy which can act as a keyboard/mouse
On a web page that is to be displayed on an iPhone, is there a way to get the number pad to come up when the user taps in the field, instead of the qwerty keypad?
This guy says here's how to do it, but as of 2.0, this "feature" was disabled.
I'm guessing there's some fancy javascript to employ to get around this limitation?
If you use the HTML5 number input type, the keyboard will default to showing numbers. It's not the number-only keyboard, but it's a bit better than just text.
Yes, this used to be possible by including the word "zip" in your text field's name attribute. Unfortunately, Apple seems to have removed this in 2.0 and later. I suggest you file a bug.
You can make calls from JavaScript to Objective-C and then display what ever you want. If you want a framework to help you out you could check out QuickConnectiPhone. It is available at https://sourceforge.net/projects/quickconnect/.
You could also check out http://tetontech.wordpress.com. This is the develpment blog for QuickConnect. It has some example code in addition to that which is included in the sourceforge download.