halilb / halilb/react-native-textinput-effects
Prop 'selectTextOnFocus' doesn't work on iOS
- Vorherrschende Sprache
- JavaScript
- Sterne
- 3k
- Forks
- 287
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
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
/>
```
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Rechercherichtung
Reproduce the issue on iOS using the Kohana example and the dependency versions listed. Start by comparing the Kohana implementation in Kohana.js with a native React Native TextInput, especially the working clearTextOnFocus behavior. Done means selectTextOnFocus selects the text when the Kohana input is focused on iOS without breaking Android behavior.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- javascript, react-native
- Bereich
- mobile
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100