Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
react-native-modal-notifier
Advanced tools
react-native-modal-notifier is a third party in-app notification package! It provides modal notification popup.
react-native-modal-notifier is a third party in-app notification package! It provides modal notification popup. There are more than one usage example;
useEffect
function
yarn add react-native-modal-notifier
Or
npm install --save react-native-modal-notifier
Wrap your app with NotifierContainer
import { NotifierContainer } from 'react-native-modal-notifier';
const App = () => (
<NotifierContainer>
<HomeScreen />
</NotifierContainer>
);
Then import useNotifier
anywhere in your code/screen/components
import { useNotifier } from 'react-native-modal-notifier';
const HomeScreen = () => {
const notifier = useNotifier();
useEffect(() => {
alert && notifier({
title: alert.title,
message: alert.message
});
}, [alert]);
return (
<TouchableHighlight
onPress={() =>
notifier({
title: 'New Notification',
message:
'New Notification',
})
}>
<Text>Set Notification</Text>
</TouchableHighlight>
);
};
Prop Name | Prop Description | Data Type | Required |
---|---|---|---|
title | Title of the message | string | yes |
message | The message of the content | string | yes |
headerShown | Header visibility option | boolean | no |
primaryButtonText | The text in the primary button content | string | no |
primaryButtonAction | The primary button action | func | no |
primaryButtonColor | The background color of the primary button | string | no |
FAQs
react-native-modal-notifier is a third party in-app notification package! It provides modal notification popup.
The npm package react-native-modal-notifier receives a total of 1 weekly downloads. As such, react-native-modal-notifier popularity was classified as not popular.
We found that react-native-modal-notifier 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.