-
Notifications
You must be signed in to change notification settings - Fork 489
Navigation API extracted to the extension #145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Navigation API extracted to the extension #145
Conversation
@dryganets, |
fbba079
to
f4b37a8
Compare
StandardDelegate uses react-native-deprecated-components Navigator.
2aaa063
to
c1a762a
Compare
9835b4e
to
13032ea
Compare
…s out that deprecated version of Navigator is not compatible with react-native 0.42.
…h corrected imports. Some samples doesn't work with 1.0.4
extensions/navigation/package.json
Outdated
"typescript": "2.4.1", | ||
"tslint": "^5.0.0" | ||
}, | ||
"author": "Sergei Dryganets", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"ReactXP Team [email protected]"
@@ -10,17 +10,24 @@ | |||
* pop, which update the state and cause transitions. | |||
*/ | |||
|
|||
import _ = require('./utils/lodashMini'); | |||
import _ = require('lodash'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I still think we want lodashmini for best bundled size
"experimentalDecorators": true, | ||
"noImplicitAny": true, | ||
"outDir": "dist/", | ||
"lib": [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if it's easy, please try enabling strictNullChecks here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I fixed it for react-native. For the web, it is way more tricky, and I don't have enough context for it now.
extensions/navigation/package.json
Outdated
], | ||
"dependencies": { | ||
"@types/lodash": "4.14.62", | ||
"@types/node": "6.0.65", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use semver '^' throughout so consumers don't get stuck on a particular version
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
still have some peaces of code with the wrong reference (RX.Navigator and RX.Types).
eg.: samples/hello-world/src/App.tsx line 41, 45 and others
d3f465f
to
ff48fce
Compare
ff48fce
to
74670f1
Compare
@vinils, thank you fixed hello-world and removed the last reference from todo list. |
@@ -0,0 +1,143 @@ | |||
// Use only for type data |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing copyright header
|
||
type NavigationSceneRendererProps = Navigation.NavigationSceneRendererProps; | ||
type NavigationState = Navigation.NavigationState; | ||
type NavigationRoute = Navigation.NavigationRoute; | ||
type NavigationTransitionProps = Navigation.NavigationTransitionProps; | ||
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: extra whitespace
import React = require('react'); | ||
import ReactDOM = require('react-dom'); | ||
import rebound = require('rebound'); | ||
|
||
import { NavigatorSceneConfigFactory } from './NavigatorSceneConfigFactory'; | ||
import { NavigatorSceneConfig } from './NavigatorSceneConfigFactory'; | ||
import RX = require('../common/Interfaces'); | ||
import Styles from './Styles'; | ||
import RX = require('reactxp'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: these should go up with other ambient imports
acb15f0
to
cea94ad
Compare
* Removed Navigation API from reactxp and moved to extension * Updated samples with reactxp-navigation
Replace Navigator API with extension.
We moved to react-native-deprecated-custom-components for StandardNavigationDelegate and to reactxp-experimental-navigation for ExperimentalNavigationDelegate.
There is a breaking change in the standard navigator. Styles should be passed as objects to the renderScene method.
facebook/react-native@febf3d0