
Product
Introducing Webhook Events for Alert Changes
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.
react-native-scale-alert
Advanced tools

$ npm i react-native-scale-alert --save
import React from 'react';
import { StyleSheet, View, Text, TouchableOpacity } from 'react-native';
import Alert from 'react-native-scale-alert';
export default class App extends React.Component {
constructor(props) {
super(props);
this.state = {
visible:false
};
};
showAlert = (status) => {
this.setState({
visible: status
})
}
render() {
const {visible} = this.state;
return (
<View style={styles.container}>
<TouchableOpacity
onPress={() => this.showAlert('success')}
style={styles.buttonStyle}
>
<Text style={styles.textStyle}>
CLICK ME
</Text>
</TouchableOpacity>
<Alert
overlay={true}
overlayColor='rgba(0,0,0,0.1)'
visible={visible}
status={visible}
title='SUCCESS'
message='Lorem ipsum dolor sit amet.'
showButton={true}
/>
</View>
);
};
};
const styles = StyleSheet.create({
container: {
flex: 1,
alignItems: 'center',
justifyContent: 'center'
},
textStyle: {
fontSize: 24
}
});
| Prop | Type | Description | Default |
|---|---|---|---|
| visible | boolean | Show / Hide alert | false |
| title | string | Title text to display | hidden |
| message | string | Message text to display | hidden |
| showButton | bool | Show a confirmation button | false |
| buttonText | bool | Confirmation button text | false |
| overlay | bool | Show a overlay | false |
| status | string | Indicates the status of the alert | false |
| propIcon | object | Icon customization | false |
| onConfirmPressed | func | Action to perform when Confirm is pressed | - |
| Prop | Type | Description | Default |
|---|---|---|---|
| containerStyle | object | Alert popup style | - |
| overlayColor | string | Overlay color change | - |
| titleStyle | object | Title style | - |
| messageStyle | object | Message style | - |
| confirmButtonStyle | object | Confirm button style | - |
| confirmButtonTextStyle | object | Confirm button text style | - |
| circleColor | string | Circle color style | - |
Feel free to Contact me or Create an issue
Released under the Mit License
FAQs
A react native alert component
We found that react-native-scale-alert 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
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.