callstack / callstack/react-native-pager-view
[Real device] TextInput cannot trigger the paste function in ViewPage
- Lingua principale
- TypeScript
- Stelle
- 3.4k
- Fork
- 476
- Merge medio
- 10g 21h
- PR unite (30g)
- 2
Descrizione
## Ask your Question
Thanks for providing such a great library. In the process of using it recently, I found that if TextInput is nested in ViewPage, TextInput cannot trigger the paste function, please see the animation below.

here is my code
```tsx
import React, { useEffect, useCallback } from 'react';
import { View, Text, TextInput } from 'react-native';
import ViewPager from '@react-native-community/viewpager';
const App = () => {
return (
);
};
```
I accidentally discovered that if the textinput is re-rendered, the paste function is restored.
here is my code
```
const App = () => {
const [visible, setVisible] = useState(false);
return (
{visible && (
)}
{
setVisible(true);
}}
/>
);
};
```

I don't know what happened and why the paste function will not work. Is this a bug? Finally, thank you for reading this question during your busy schedule and looking forward to your reply, thank you.
iOS work fine. no try it
## Library :
react-native : 0.63.2
@react-native-community/viewpager: ^4.2.2,
## device :
device : xiaomi(android10) and huawei
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Riproduci l’esempio con un TextInput annidato in ViewPager su Android 10 utilizzando i dispositivi Xiaomi o Huawei segnalati, confrontando il rendering iniziale con il caso di un nuovo rendering. Il lavoro è completato quando il TextInput annidato può attivare l’incollamento senza richiedere un nuovo rendering; nel report non sono indicati file sorgente né test.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- android, react-native, typescript
- Ambito
- mobile
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100