AndreasFaust / react-ticker

React Ticker is a lightweight, performant React component, that moves text, images and videos infinitely like a newsticker.
https://andreasfaust.github.io/react-ticker/
288 stars 50 forks source link

Is there any way to use it with React 17? #41

Closed EvilBozkurt closed 2 years ago

EvilBozkurt commented 2 years ago

Is there any way to use it with React 17.0.2v ? Is it me because I'm a beginner or is it not possible to use it?

blakejoy commented 2 years ago

Just npm install react-ticker --force. Documentation mentions it has no dependencies besides React 16+.

karamgaby commented 2 years ago

What you need to do is to change the peer dependencies of the react-ticker package to the following.

"peerDependencies": {
    "prop-types": "^15.8.0",
    "react": "^17.0.2",
    "react-dom": "^17.0.2"
  },

I have just created a pull request, and soon it will get merged to the main if there wasn't any problem with the changed configuration.

AndreasFaust commented 2 years ago

Fixed with version 1.3.1.