Monte9 / react-native-ratings

Tap and Swipe Ratings component for React Native.
https://expo.io/@monte9/react-native-ratings
MIT License
907 stars 196 forks source link

Throwing error related to image #177

Open ujshaikh opened 2 years ago

ujshaikh commented 2 years ago

File doest not existing error throwing while using basic usage of this module. Please refer following trace

None of these files exist:
  * airbnb-star-selected.png
  * node_modules\react-native-ratings\dist\images\airbnb-star-selected.png\index(.native|.android.js|.native.js|.js|.android.jsx|.native.jsx|.jsx|.android.json|.native.json|.json|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx)
  2 | import { StyleSheet, Animated, TouchableOpacity } from "react-native";
  3 | const STAR_IMAGE = require("../images/airbnb-star.png");
> 4 | const STAR_SELECTED_IMAGE = require("../images/airbnb-star-selected.png");
    |                                      ^
  5 | const STAR_SIZE = 40;
  6 | const Star = props => {
  7 |     const [selected, setSelected] = useState(false);]