react-native-simple-transition .Simple Transition Component For React Native A minimalist and easy to use transition component for React Native.
A minimalist and easy to use transition component for React Native.
Install the library
yarn add react-native-simple-transition
Create a transition component and add the content as a child. New components will be animated every time the key changes.
import { WithPushTransition } from 'react-native-simple-transition';
const MyComponent = () => {
const [count, setCount] = useState(0);
return (
<WithPushTransition style={{flex: 1}}>
<Text key={count} onPress={() => setCount(count+1)}>
This component will smoothly transition on key changes.
</Text>
</WithPushTransition>
)
}
Currently the only transition component is WithPushTransition
. More are planned to be added soon.
contentKey
: alternative to updating the child's key
propertyduration
: transition duration in millisecondsstyle
: the style given to the transition componenteasing
: an easing function for the transitiondirection
: the direction of the transition; can be "left"
, "right"
, "up"
or "down"
Author: TheLartians
Source Code: https://github.com/TheLartians/react-native-simple-transition
Article covers: How native is react native?, React Native vs (Ionic, Cordova), Similarities and difference between React Native and Native App Development.
Skenix is providing React Native Development Services with qualified React Native App Developers. Get the best React Native App Development Services.
Are you a mobile app developer looking for more efficient tools for your projects? Mobile app development is getting tougher and tougher as the market continues to grow. As a developer, you need to develop Apps which meet the demands of your users. To achieve this, adopt the right tools, like the React Native development framework.
Looking for top React Native mobile app development company in USA for Startups & Enterprise? Find out the top list of React Native mobile app development company in USA.
Hire top react native app development company in New York to build and develop custom react native mobile apps for Android & iOS with the latest features.