halilb / halilb/react-native-textinput-effects

Prop 'selectTextOnFocus' doesn't work on iOS

Open
#124 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
3k
Forks
287
PR merge metrics
No merged PRs in 30d

Description

I want the text of a Kohona element to be selected as soon as the TextInput is klicked. This works fine on Android, but on iOS it doesn't. I already had a look at the Kohona.js file of the library but I couldn't find the problem.

I also tried clearTextOnFocus, this works fine on iOS. Also, if I use a normal RN , it works as well.

Some of my dependencies:
"react": "16.9.0",
"react-native": "0.61.5",
"react-native-textinput-effects": "0.6.1",

This is my code:

```javascript

import {Hideo, Kohana, Kaede} from 'react-native-textinput-effects';
// ...
this.setPoints(typeOfPoints, input)}
selectTextOnFocus={true}
useNativeDriver
/>
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.