I have tried textInputContextIdentifier
and textInputMode
but not work in physical device(test on ios 16.6.1), I think you need to use a custom implemented emoji picker instead.
Still in development, please don't use it now.
Show ios native emoji keyboard
There are already js-implemented emoji picker components for usage, but I prefer using native solution for better performance, so I created this component.
- Only for ios now
- Only wrapped for single-line text-input component, if you want to support multi-line text-input, just open an issue. (I think it's more promising to put this feature into react-native)
- I haven't found a way to hide the globe(language-switch) icon below the ios keyboard, tell me if you found a way.
npm install react-native-emoji-textinput
npx pod-install
Use just like normal TextInput component except
Not a truly TextInput wrappermultiline
prop
import { EmojiTextinputView } from "react-native-emoji-textinput";
<EmojiTextinputView {...propsForTextInput} />
Thanks for this answer on the stackoverflow
MIT