callstack / callstack/react-native-pager-view

[Real device] TextInput cannot trigger the paste function in ViewPage

Open
#278 2 comments 0 reactions 0 assignees View on GitHub
android bug
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.

![reportView](https://user-images.githubusercontent.com/26075200/105338604-b7f11c80-5c16-11eb-9873-6e5f71657d75.gif)

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);
}}
/>




);
};
```
![ 2021-01-01 19 07 03](https://user-images.githubusercontent.com/26075200/105343098-24224f00-5c1c-11eb-89d7-4828ff070ccd.gif)

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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.