
Product
Introducing Scala and Kotlin Support in Socket
Socket now supports Scala and Kotlin, bringing AI-powered threat detection to JVM projects with easy manifest generation and fast, accurate scans.
react-native-simple-gradient-progressbar-view
Advanced tools
Simple gradient progressbar view for React Native
Simple gradient progressbar view for React Native
npm install react-native-simple-gradient-progressbar-view
import SimpleGradientProgressbarView from "react-native-simple-gradient-progressbar-view";
<View style={styles.container}>
<SimpleGradientProgressbarView
style={styles.box}
fromColor="#FF0000"
toColor="#0000FF"
progress={0.50}
maskedCorners={[0, 0, 1, 1]}
cornerRadius={7.0}
/>
<SimpleGradientProgressbarView
style={styles.box}
fromColor="#FF0000"
toColor="#0000FF"
progress={0.75}
maskedCorners={[1, 1, 1, 1]}
cornerRadius={7.0}
/>
<SimpleGradientProgressbarView
style={styles.box}
fromColor="#FF0000"
toColor="#0000FF"
progress={1.0}
/>
</View>
);
const styles = StyleSheet.create({
container: {
flex: 1,
alignItems: 'center',
justifyContent: 'center',
},
box: {
width: 300,
height: 30,
marginVertical: 20,
borderColor: '#000000',
borderWidth: 1,
borderRadius: 7.0,
},
});
// Available properties
type SimpleGradientProgressbarViewProps = {
style: ViewStyle;
fromColor: string; // color
toColor: string; // color
progress: number; // 0.0 - 1.0
maskedCorners?: Array<number>;
cornerRadius?: number;
};
Masked corners property will only affact iOS >= 11 and Android. By default masking of all corners is enabled. To disable corner radius masking on specific corner you need to use maskedCorners
property. Each value in array is coresponding to one corner:
All 4 values are required, however the maskedCorners property is optional. Eg. to disable masking on leftTop and rightBottom corners you need to set: maskedCorners={[0, 1, 1, 0]}
.
MIT
FAQs
Simple gradient progressbar view for React Native
The npm package react-native-simple-gradient-progressbar-view receives a total of 59 weekly downloads. As such, react-native-simple-gradient-progressbar-view popularity was classified as not popular.
We found that react-native-simple-gradient-progressbar-view demonstrated a not healthy version release cadence and project activity because the last version was released 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.
Product
Socket now supports Scala and Kotlin, bringing AI-powered threat detection to JVM projects with easy manifest generation and fast, accurate scans.
Application Security
/Security News
Socket CEO Feross Aboukhadijeh and a16z partner Joel de la Garza discuss vibe coding, AI-driven software development, and how the rise of LLMs, despite their risks, still points toward a more secure and innovative future.
Research
/Security News
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.