Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Throwing error related to image #177

Open
ujshaikh opened this issue Sep 12, 2022 · 0 comments
Open

Throwing error related to image #177

ujshaikh opened this issue Sep 12, 2022 · 0 comments

Comments

@ujshaikh
Copy link

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);]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant