I switched from react-native-star-rating to react-native-star-rating-widget to beat points with the previous.
I’ve obtained the latter working with npx begin -c
on expo go.
Nonetheless after I use eas construct and run the construct on the simulator they are not there and I do not know why or how you can debug this?
return (
Meat ranking:
setMeatRating(ranking)}
colour={getColorRating(meatRating)}
/>
Potatoes ranking:
setPotatoesRating(ranking)}
colour={getColorRating(potatoesRating)}
starSize={starSize}
/>
Veg ranking:
setVegRating(ranking)}
colour={getColorRating(vegRating)}
/>
Gravy ranking:
setGravyRating(ranking)}
colour={getColorRating(gravyRating)}
starSize={starSize}
/>
Your Remark:
Add Picture
{selectedImage && (
Cancel Picture
)}
related types
const types = StyleSheet.create({
container: {
flexGrow: 1,
padding: 24,
paddingBottom: 20,
backgroundColor: GlobalStyles.colours.background,
},
starsContainer: {
flexDirection: "row",
},
label: {
fontSize: 16,
marginBottom: 5,
marginTop: 10,
fontFamily: "Roboto-Common",
},
textInput: {
borderWidth: 1,
borderColor: "grey",
marginBottom: 15,
padding: 10,
borderRadius: 5,
minHeight: 120,
fontFamily: "Roboto-Common",
},
and
import StarRating from "react-native-star-rating-widget";
import { fetchRoasts } from "../redux/reducers/roastsReducer";
import { IMAGE_BUCKET as DOTENV_IMAGE_BUCKET } from '@env';
import { API_URL as DOTENV_API_URL } from "@env"
const API_URL = course of.env.EXPO_PUBLIC_API_URL || DOTENV_API_URL
const IMAGE_BUCKET = course of.env.EXPO_PUBLIC_IMAGE_BUCKET || DOTENV_IMAGE_BUCKET;
const windowWidth = Dimensions.get("window").width;
const getStarSize = (width) => {
if (width > 400) return 40;
if (width > 350) return 30;
return 26; // Smaller dimension for units like iPhone 13 Mini
};
const getColorRating = (ratingValue) => {
if (ratingValue > 5) return GlobalStyles.colours.positiveGreen;
if (ratingValue > 2) return GlobalStyles.colours.neutralOrange;
return GlobalStyles.colours.negativeRed;
};
My react native information is not nice, however I’ve expertise with golang kubernetes aws and so forth by means of day job so I am pretty technical
I am additionally battling debugging the precise builds, I’ve to remark out the sso login stuff to run expo domestically which is annoying as a result of the sso modules use react native modules so cannot be run in expo
Thanks