Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
react-native-dialog-view
Advanced tools
The react-native-dialog-view
is an animated overlay that can help you to display on the screen a pop-up/modal/dialog-view.
This is a more straightforward solution to the react-native-modal. This implementation is a simpler solution for a modal that is not using the react-native-modal and it uses the react-native-reanimated for a simple animation and the react-native-portal to be above everything.
You can display more DialogView
modals over each other.
Default animation Slide In
.
npm install react-native-dialog-view
or
yarn add react-native-dialog-view
Package | Version |
---|---|
react-native-reanimated | ^3.2.0 |
react-native-portal | ^1.0.14 |
Add the DialogViewProvider
to your App.ts files
import { DialogViewProvider } from 'react-native-dialog-view';
// ...
<Provider store={store}>
<DialogViewProvider>
<NavigationProvider>
<MainNavigator />
</NavigationProvider>
</DialogViewProvider>
</Provider>;
import { DialogViewView } from 'react-native-dialog-view';
// ...
<DialogViewView
visible={isVisible}
animationTime={300} // default
hideModal={hideModal}
>
<YourDesignedModal/>
</DialogView>
Name | Required | Type | Description |
---|---|---|---|
visible | required | boolean | This variable is used to display the overview |
children | required | ReactNode | - |
animationTime | optional | number | This variable is used to set the speed of the entrance/exit animation of the overlay |
onPressBackdrop | optional | function | This function is called when the use presses on the overlay |
backdropColor | optional | string | This variable is used to change the background color of the overlay |
overlayStyle | optional | ViewStyle | This prop can be used to change the style of the overlay |
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT
Made with create-react-native-library
FAQs
react-native-dialog-view
We found that react-native-dialog-view 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.