callstack / callstack/react-native-pager-view
[Real device] TextInput cannot trigger the paste function in ViewPage
- Dominant language
- TypeScript
- Stars
- 3.4k
- Forks
- 476
- Avg merge
- 10d 21h
- Merged PRs (30d)
- 2
Description
## 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
Contributor guide
Assessment
This issue has not been assessed yet.