deanhet / react-native-text-ticker

React Native Text Ticker/Marquee Component
MIT License
444 stars 75 forks source link

The component throw an error #81

Closed KaniuBillows closed 3 years ago

KaniuBillows commented 3 years ago

Uncaught TypeError: Cannot read property 'style' of undefined at Module.../../../../../../../../Programs/Mukai Music/Clients/mukai_music/node_modules/react-native-text-ticker/index.js (index.js:26) at webpack_require__ (bootstrap:789) at fn (bootstrap:100) at Module.../../../../../../../../Programs/Mukai Music/Clients/mukai_music/src/MiniPlayer.tsx (Home.tsx:27) at webpack_require (bootstrap:789) at fn (bootstrap:100) at Module.../../../../../../../../Programs/Mukai Music/Clients/mukai_music/App.tsx (bootstrap:856) at __webpack_require (bootstrap:789) at fn (bootstrap:100) at Module.../../../../../../../../Programs/Mukai Music/Clients/mukai_music/index.js (index.js?206b:1) at webpack_require (bootstrap:789) at fn (bootstrap:100) at Object.1 (log.js:59) at webpack_require (bootstrap:789) at bootstrap:856 at bootstrap:856 I just use it like example: <TextTicker isRTL={false} style={{ fontSize: 14 }} duration={3000} loop bounce repeatSpacer={50} marqueeDelay={1000} > Super long piece of text is long. The quick brown fox jumps over the lazy dog. </TextTicker>

deanhet commented 3 years ago

From the context in your error (webpack/bootstrap), this looks like a web project. This package is only meant for react-native projects.