mirror of
https://github.com/status-im/react-navigation.git
synced 2025-02-24 17:18:09 +00:00
Fix isFocused and example
This commit is contained in:
parent
029d6ac4d2
commit
9e47092d56
@ -69,7 +69,7 @@ const createTabScreen = (name, icon, focusedIcon, tintColor = '#673ab7') => {
|
|||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
<Button
|
<Button
|
||||||
onPress={() => this.props.navigation.dismiss()}
|
onPress={() => this.props.navigation.pop()}
|
||||||
title="Back to other examples"
|
title="Back to other examples"
|
||||||
/>
|
/>
|
||||||
<StatusBar barStyle="default" />
|
<StatusBar barStyle="default" />
|
||||||
|
@ -5289,9 +5289,9 @@ react-native-maps@0.19.0:
|
|||||||
version "0.19.0"
|
version "0.19.0"
|
||||||
resolved "https://registry.yarnpkg.com/react-native-maps/-/react-native-maps-0.19.0.tgz#ce94fad1cf360e335cb4338a68c95f791e869074"
|
resolved "https://registry.yarnpkg.com/react-native-maps/-/react-native-maps-0.19.0.tgz#ce94fad1cf360e335cb4338a68c95f791e869074"
|
||||||
|
|
||||||
react-native-paper@^1.2.4:
|
react-native-paper@^1.2.5:
|
||||||
version "1.2.4"
|
version "1.2.5"
|
||||||
resolved "https://registry.yarnpkg.com/react-native-paper/-/react-native-paper-1.2.4.tgz#28ab6e5d83ea264167058618bde312c7c61ece73"
|
resolved "https://registry.yarnpkg.com/react-native-paper/-/react-native-paper-1.2.5.tgz#3a4480ca967aae4b3e65a987116973dd012d1fa8"
|
||||||
dependencies:
|
dependencies:
|
||||||
color "^2.0.1"
|
color "^2.0.1"
|
||||||
create-react-context "^0.2.1"
|
create-react-context "^0.2.1"
|
||||||
@ -5341,18 +5341,18 @@ react-native-scripts@^1.11.1:
|
|||||||
color "^2.0.1"
|
color "^2.0.1"
|
||||||
lodash "^4.16.6"
|
lodash "^4.16.6"
|
||||||
|
|
||||||
react-native-tab-view@^0.0.74:
|
|
||||||
version "0.0.74"
|
|
||||||
resolved "https://registry.yarnpkg.com/react-native-tab-view/-/react-native-tab-view-0.0.74.tgz#62c0c882d9232b461ce181d440d683b4f99d1bd8"
|
|
||||||
dependencies:
|
|
||||||
prop-types "^15.6.0"
|
|
||||||
|
|
||||||
react-native-tab-view@react-navigation/react-native-tab-view:
|
react-native-tab-view@react-navigation/react-native-tab-view:
|
||||||
version "0.0.74"
|
version "0.0.74"
|
||||||
resolved "https://codeload.github.com/react-navigation/react-native-tab-view/tar.gz/36ebd834d78b841fc19778c966465d02fd1213bb"
|
resolved "https://codeload.github.com/react-navigation/react-native-tab-view/tar.gz/36ebd834d78b841fc19778c966465d02fd1213bb"
|
||||||
dependencies:
|
dependencies:
|
||||||
prop-types "^15.6.0"
|
prop-types "^15.6.0"
|
||||||
|
|
||||||
|
react-native-tab-view@~0.0.77:
|
||||||
|
version "0.0.77"
|
||||||
|
resolved "https://registry.yarnpkg.com/react-native-tab-view/-/react-native-tab-view-0.0.77.tgz#11ceb8e7c23100d07e628dc151b57797524d00d4"
|
||||||
|
dependencies:
|
||||||
|
prop-types "^15.6.0"
|
||||||
|
|
||||||
react-native-vector-icons@4.5.0:
|
react-native-vector-icons@4.5.0:
|
||||||
version "4.5.0"
|
version "4.5.0"
|
||||||
resolved "https://registry.yarnpkg.com/react-native-vector-icons/-/react-native-vector-icons-4.5.0.tgz#6b95619e64f62f05f579f74a01fe5640df95158b"
|
resolved "https://registry.yarnpkg.com/react-native-vector-icons/-/react-native-vector-icons-4.5.0.tgz#6b95619e64f62f05f579f74a01fe5640df95158b"
|
||||||
@ -5432,16 +5432,16 @@ react-navigation-header-buttons@^0.0.4:
|
|||||||
dependencies:
|
dependencies:
|
||||||
react-native-platform-touchable "^1.1.1"
|
react-native-platform-touchable "^1.1.1"
|
||||||
|
|
||||||
react-navigation-tabs@0.1.0-alpha.3:
|
react-navigation-tabs@0.1.0-alpha.5:
|
||||||
version "0.1.0-alpha.3"
|
version "0.1.0-alpha.5"
|
||||||
resolved "https://registry.yarnpkg.com/react-navigation-tabs/-/react-navigation-tabs-0.1.0-alpha.3.tgz#a68ace954e84206b7c3e6f5793f234d3931d03dc"
|
resolved "https://registry.yarnpkg.com/react-navigation-tabs/-/react-navigation-tabs-0.1.0-alpha.5.tgz#51cae3ea5f0f77bdf0deb50a855a5dcaa2f9bf1e"
|
||||||
dependencies:
|
dependencies:
|
||||||
hoist-non-react-statics "^2.5.0"
|
hoist-non-react-statics "^2.5.0"
|
||||||
prop-types "^15.6.0"
|
prop-types "^15.6.0"
|
||||||
react-lifecycles-compat "^1.0.2"
|
react-lifecycles-compat "^1.0.2"
|
||||||
react-native-paper "^1.2.4"
|
react-native-paper "^1.2.5"
|
||||||
react-native-safe-area-view "^0.7.0"
|
react-native-safe-area-view "^0.7.0"
|
||||||
react-native-tab-view "^0.0.74"
|
react-native-tab-view "~0.0.77"
|
||||||
|
|
||||||
"react-navigation@link:../..":
|
"react-navigation@link:../..":
|
||||||
version "0.0.0"
|
version "0.0.0"
|
||||||
|
@ -69,6 +69,7 @@ function createNavigator(NavigatorView, router, navigationConfig) {
|
|||||||
actions: actionCreators,
|
actions: actionCreators,
|
||||||
dispatch,
|
dispatch,
|
||||||
state: route,
|
state: route,
|
||||||
|
isFocused: () => this._isRouteFocused(route),
|
||||||
dangerouslyGetParent: this._dangerouslyGetParent,
|
dangerouslyGetParent: this._dangerouslyGetParent,
|
||||||
addListener: this.childEventSubscribers[route.key].addListener,
|
addListener: this.childEventSubscribers[route.key].addListener,
|
||||||
getParam: (paramName, defaultValue) => {
|
getParam: (paramName, defaultValue) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user