Skip to content

Demo of failing Jest Snapshots with addEventListener exception when using React Native Web Touchable component

Notifications You must be signed in to change notification settings

jribeiro/react-native-web-touchable-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-native-web-touchable-demo

Demo project showcasing an exception when using React Native Web Touchable component.

Getting started

  • Install dependencies
yarn
  • Run the tests
yarn test

Expected snapshots to be created.

Actual Result

TypeError: this._touchableNode.addEventListener is not a function

      at Object.componentDidMount (node_modules/react-native-web/dist/components/Touchable/Touchable.js:1:5432)
      at Object.<anonymous> (index.test.js:8:1)
          at new Promise (<anonymous>)
          at <anonymous>
      at process._tickCallback (internal/process/next_tick.js:188:7)

About

Demo of failing Jest Snapshots with addEventListener exception when using React Native Web Touchable component

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published