mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-04-23 20:10:49 +08:00
chore: update readme and bump version
This commit is contained in:
@@ -44,4 +44,21 @@ const MySwitch = createAnimatedSwitchNavigator(
|
||||
);
|
||||
```
|
||||
|
||||
If you need to customize the underlying `Transitioning.View` style, you can pass in a `transitionViewStyle` option.
|
||||
|
||||
```js
|
||||
import createAnimatedSwitchNavigator from 'react-navigation-animated-switch';
|
||||
import { Transition } from 'react-native-reanimated';
|
||||
|
||||
const MySwitch = createAnimatedSwitchNavigator(
|
||||
{
|
||||
Home: HomeScreen,
|
||||
Other: OtherScreen,
|
||||
},
|
||||
{
|
||||
transitionViewStyle: { backgroundColor: 'red' },
|
||||
}
|
||||
);
|
||||
```
|
||||
|
||||
[Learn more about the `Transition` API here](https://github.com/kmagiera/react-native-reanimated).
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "react-navigation-animated-switch",
|
||||
"version": "0.2.1",
|
||||
"version": "0.3.1",
|
||||
"description": "Animated switch for React Navigation",
|
||||
"main": "lib/commonjs/index.js",
|
||||
"react-native": "lib/module/index.js",
|
||||
|
||||
Reference in New Issue
Block a user