Skip to content
This repository was archived by the owner on Aug 1, 2020. It is now read-only.

Update setup.md #35

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions docs/setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,3 +101,25 @@ module.exports = {
// ... other options ...
}
```
#### Known issues

TouchableOpacity not visible when using RN 0.62

see https://github.com/testing-library/native-testing-library/issues/113

You can apply this temporary fix by mocking TouchableOpacity with TouchableHighlight in jest.setup.js file:

```js
jest.mock(
'react-native/Libraries/Components/Touchable/TouchableOpacity.js',
() => {
const { TouchableHighlight } = require('react-native')
const MockTouchable = props => {
return <TouchableHighlight {...props} />
}
MockTouchable.displayName = 'TouchableOpacity'

return MockTouchable
}
)
```