react-native-swiper icon indicating copy to clipboard operation
react-native-swiper copied to clipboard

throw an error when I introduce Swiper

Open shellingfordly opened this issue 3 years ago • 0 comments

Description

throw an error "TypeError: Cannot assign to read only property 'exports' of object '#<Object>'", when I introduce Swiper in application by expo created

Version

  • react-native-swiper ^1.6.0
  • react-native 0.64.3
  • expo ~44.0.0

image

Resolve

it was resolved when i used 'export default Swiper' instand of 'module.exports.default = Swiper;'

shellingfordly avatar Dec 29 '21 06:12 shellingfordly