react-native-navigation-layouts
v0.1.2
Published
Utility library for generating layouts for react-native-navigation
Downloads
27
Readme
react-native-navigation-layouts
Utility library for generating layouts for react-native-navigation. This library exposes helper methods to generate the complex objects needed to define layouts in RNN.
Before:
Navigation.push(this.props.componentId, {
component: {
name: "CustomScreen",
passProps: {
mySpecialValue: false,
}
},
});
After:
import { component } from "react-native-navigation-layouts";
Navigation.push(this.props.componentId, component("CustomScreen", {
mySpecialValue: false
}));
Documentation
Animation
The library also handles generating animation for your layouts. This can be done by using the animate
method.
animations: {
...animate("push", "x", 1000, 0, 200, 0, 'decelerate", true, "android"),
}
Authors
- Luke Brandon Farrell - Author
License
This project is licensed under the MIT License