![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.
@fnzc/react-native-pages
Advanced tools
A component to handle transition between pages based on a list of ordered statuses
A component to handle transition between pages based on a list of ordered statuses
Using:
npm install --save @fnzc/react-native-pages
or
yarn add @fnzc/react-native-pages
Here is how it can look like with a login/register flow example:
Basic usage requires you to provide:
currentStatus
representing the current pagepages
, an array of page
statuses
orderedThe pages will use the statuses ordered in the provided array to transition from left to right or right to left
NOTE: A page contains:
{
associatedStatus: string,
component: JSX.Element,
style?: StypeProp<ViewStyle>
}
Example usage:
import Pages from '@fnzc/react-native-pages'
const orderedStatuses = ['email', 'login', 'password', 'finished', 'confirmed', 'loading']
createPages = (): Page[] => {
return [
{
component: this.createPage(...),
associatedStatus: 'email'
},
{
component: this.createPage(...),
associatedStatus: 'password'
},
...
]
}
<PagesComponent
currentStatus={this.props.status}
orderedStatuses={orderedStatuses}
pages={this.createPages()}/>
Key | Description | Default | Required | Type |
---|---|---|---|---|
currentStatus | Name of the status associated to the current page | None | true | string |
pages | The array of pages that have to be displayedPage | None | true | Page[] |
orderedStatuses | The array of ordered statuses use to transition the pages | None | true | any[] |
translateEnterDuration | The duration of the enter transition | 400 | false | number |
translateEnterFunction | The easing function of the enter transition | easeQuadInOut | false | (normalizedTime: number) => number |
translateEnterPosition | The position of the page on the enter transition | 0 | false | number |
translateEndForwardPosition | The position of the page at the end of a forward transition | -Dimensions.get('window').width | false | number |
translateEndBackwardPosition | The position of the page at the end of a backward transition | Dimensions.get('window').width | false | number |
translateLeaveDuration | The duration of the enter transition | 400 | false | number |
translateLeaveFunction | The easing function of the enter transition | easeQuadInOut | false | (normalizedTime: number) => number |
translateStartForwardPosition | The position of the page at the start of a forward transition | Dimensions.get('window').width | false | number |
translateStartBackwardPosition | The position of the page at the start of a backward transition | -Dimensions.get('window').width | false | number |
Pull requests are welcome.
[1.0.0] - 2018-03-23
FAQs
A component to handle transition between pages based on a list of ordered statuses
The npm package @fnzc/react-native-pages receives a total of 2 weekly downloads. As such, @fnzc/react-native-pages popularity was classified as not popular.
We found that @fnzc/react-native-pages demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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.