![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
popup-ui-custom
Advanced tools
Rafael Augusto's React Native Popup UI base project with some updates to be compliant with React 0.70 (fixes deprecated-react-native-prop-types error)
A simple and fully customizable React Native component that implements a popup UI.
Example One | Example Two | Example Three |
---|---|---|
![]() | ![]() | ![]() |
Example One | Example Two | Example Three |
---|---|---|
![]() | ![]() | ![]() |
If using yarn:
yarn add popup-ui
If using npm:
npm i popup-ui
import { View, TouchableOpacity, Text } from 'react-native'
import { Root, Popup } from 'popup-ui'
Simply declare the method in your event Popup.show({...})
in its component.
<Root>
<View>
<TouchableOpacity
onPress={() =>
Popup.show({
type: 'Success',
title: 'Upload complete',
button: false,
textBody: 'Congrats! Your upload successfully done',
buttonText: 'Ok',
callback: () => Popup.hide()
})
}
>
<Text>Open Popup</Text>
</TouchableOpacity>
</View>
</Root>
You can also use the Toast
component.
// Is necessary make the import to Toast (import { Root, Toast } from 'popup-ui')
<Root>
<View>
<TouchableOpacity
onPress={() =>
Toast.show({
title: 'User created',
text: 'Your user was successfully created, use the app now.',
color: '#2ecc71'
})
}
>
<Text>Call Toast</Text>
</TouchableOpacity>
</View>
</Root>
Popup contains a type-customization scheme Type
props.
Example success usage:
Popup.show({
type: 'Success'
})
Example warning usage:
Popup.show({
type: 'Warning'
})
Example error usage:
Popup.show({
type: 'Danger'
})
Popup contains a customization in Background
props.
Example usage:
Popup.show({
background: 'red'
})
Popup contains a callback function in button popup Callback
props.
Example usage:
Popup.show({
callback: Popup.hide()
})
Name | Description | Default | Type |
---|---|---|---|
title | Sets the main popup title | Upload complete | String |
type | Defines the type (Success, Warning or Error) | Success | String |
textBody | Defines the text body of popup | String | |
button | Whether or not to display the | true | Bool |
buttonText | Defines the text button of popup | Ok | String |
callback | Defines the function of button | Alert() | Func |
background | Sets the backgroundColor | rgba(0, 0, 0, 0.5) | String |
timing | Sets the time for the popup to close by itself | 5000 | Number |
autoclose | sets whether the popup will close automatically | false | Bool |
icon | use costum icon | false | Component |
Name | Description | Default | Type |
---|---|---|---|
title | Sets the main toast title | String | |
text | Defines the text to toast | String | |
color | Defines the color to title, border and iconC | #e1e1e1 | String |
timing | Define your timing to close toast | 6s | Int |
icon | Choose your the best icon to toast | Component |
Pull requests are always welcome! Feel free to open a new GitHub issue for any changes that can be made.
Rafael Augusto | https://linkedin.com/in/rafaelaugustos/
FAQs
Rafael Augusto's React Native Popup UI base project with some updates to be compliant with React 0.70 (fixes deprecated-react-native-prop-types error)
The npm package popup-ui-custom receives a total of 2 weekly downloads. As such, popup-ui-custom popularity was classified as not popular.
We found that popup-ui-custom 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.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.