Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@coder-shubh/feedback-star
Advanced tools
Readme
A React Native component for implementing feedback star ratings easily.
You can install the @coder-shubh/feedback-star
package using npm or yarn:
# with npm
npm i @coder-shubh/feedback-star react-native-vector-icons
# with yarn
yarn add @coder-shubh/feedback-star react-native-vector-icons
import React from "react";
import { View, StyleSheet } from "react-native";
import { FeedBackStar } from "@coder-shubh/feedback-star";
const App = () => {
const handleStarPress = (rating: number) => {
console.log("Selected rating:", rating);
};
return (
<View style={styles.container}>
<FeedBackStar
initialRating={3}
onStarPress={handleStarPress}
starSize={40}
selectedColor="#ffb300"
unselectedColor="#000"
/>
</View>
);
};
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: "center",
alignItems: "center",
backgroundColor: "#F0F1F5",
},
});
export default App;
Prop | Type | Description | Default Value |
---|---|---|---|
initialRating | number | The initial rating value. | 0 |
onStarPress | (rating: number) => void | A callback function triggered when a star is pressed. | - |
starSize | number | The size of each star. | 52 |
selectedColor | string | The color of selected stars. | '#ffb300' |
unselectedColor | string | The color of unselected stars. | '#000' |
In this table:
Prop
: Name of the prop.
Type
: Type of the prop.
Description
: Description of what the prop does.
Default Value
: Default value of the prop, if any.
This project is licensed under the MIT License - see the LICENSE file for details.
In this version, I've added:
Feel free to adjust the styles, colors, or any other aspects to better suit your preferences or project branding.
FAQs
A React-Native component for feedback star rating.
The npm package @coder-shubh/feedback-star receives a total of 1 weekly downloads. As such, @coder-shubh/feedback-star popularity was classified as not popular.
We found that @coder-shubh/feedback-star demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.