mirror of
https://github.com/callstack/react-native-testing-library.git
synced 2026-09-18 23:09:04 +08:00
8984abbf74
### Summary
If I have a custom button like:
```js
<MyCustomButton handlePress={onPress} />
```
The following will not work:
```js
fireEvent(getByTestId('my-custom-button'), 'handlePress');
```
Because we are trying to call `onHandlePress`.
### Test plan
```
yarn test fireEvent
```
6 lines
44 B
Plaintext
6 lines
44 B
Plaintext
node_modules
|
|
*.log
|
|
.eslintcache
|
|
build
|
|
.idea
|