This repository has been archived by the owner on May 13, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 449
Support react 16(react-native 0.43) , findNodeHandle, FlatList and SectionList #248
Open
flyskywhy
wants to merge
128
commits into
taofed:master
Choose a base branch
from
flyskywhy:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
we set [email protected] but not [email protected] is: 1. [email protected] -> ReactBaseClasses.js -> setState -> enqueueSetState() is not compatible with the parameters defined in [email protected] -> ReactUpdateQueue.js -> enqueueSetState(), so we need upgrade react-dom, othewise navigator can't route to new page because it use setState; 2. ReactAnimated use animated, but animated has not suppor React v16 for now, see animatedjs/animated#63 , and [email protected] to [email protected] will crash the animated but accurate [email protected] is good.
use import { StackNavigator } from 'react-navigation/src/react-navigation.js' not import { StackNavigator } from 'react-navigation'; // it will use react-navigation.web.js instead and replace PlatformHelpers with PlatformHelpers.native in react-navigation/src/createNavigationContainer.js
This was referenced May 9, 2017
@flyskywhy 看起来这个库放弃维护了,有动力接手继续吗? |
More react 16 compatible @cpunion ,谢谢信任 😄
@cpunion ,谢谢信任 😄 ,您的 PR 已合并 |
@fov42550564 ,issue 暂时还是先集中在这边吧,我也会时不时过来看看的 |
Convert React.createClass to ES6 class
Remove array-find-index
@flyskywhy FlatList不能下拉刷新,设置refreshing={true}后,activityindicator也不能显示出来,onRefresh={()=>{console.log("========");}}函数也不执行,你测试的时候遇到这个问题了吗,另外,老版本的ListView设置refreshControl也不能下来刷新,是不是需要采用第三发的List? |
咱们 fork 一个共同维护吧,以这边的情况看,不但基本修复合并不了,以后发展也没指望了。 |
叫 @flyskywhy fork 吧 |
suppress Warning:Unknown props on FlatList
support onPress WebView
fix scrollEventThrottle bug
Update ScrollView.web.js
merge new code
AsyncStorage:worked well
…rue` even after warning "Falling back to JS-based animation"
…crollIndicator; 'auto' is better than 'scroll'
1. if still position: absolute , problem 1 in taofed#101 still exist when use ScrollView with DrawerItems of react-navigation even manually specify the height of ScrollView 2. this padding workaround is the result of position: absolute, so revert it too
…to set an indexed property on 'CSSStyleDeclaration': Index property setter is not supported.`
… [email protected] for [Expose less internals for TestUtils](facebook/react#13539)
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
react 16:
(Chinese version comment of commit 8c543ba) react-native 0.43 对应的 react 的版本是 16.0.0-alpha.6 ,由于 [email protected] 中的 ReactBaseClasses.js 中的 setState 调用 enqueueSetState() 的参数与 [email protected] 中
的 ReactUpdateQueue.js 中的 enqueueSetState() 定义配合不上,因此需要升级 react-dom 以使 Web 版的 Navigator 的页面 route 跳转再次能用,这实际上就是让 setState(partialState, callback) 中的 callback 再次能用。而之所以只升级成 [email protected] 而非 [email protected] 是因为 ReactAnimated 所用的第三方组件 animated 现在还不支持 React v16 Support 而使得从 [email protected] 到 [email protected] 都会导致崩溃,所以现在先暂时锁定在唯一能用的 [email protected]
另:@yuanyan 后续是否考虑进行类似 necolas/react-native-web@941c628 这样的去除一些对 react-dom 依赖的操作?就像 necolas 在 React v16 Support 中建议 https://github.com/animatedjs/animated/blob/master/src/targets/react-dom.js 中的
var CSSPropertyOperations = require('react-dom/lib/CSSPropertyOperations');
语句去除对 react-dom 的依赖那样https://github.com/react-community/react-navigation:
work with react-navigation recommended by [email protected](it remove navigator) when
use
import { StackNavigator } from 'react-navigation/src/react-navigation.js'
not
import { StackNavigator } from 'react-navigation'; // it will use react-navigation.web.js instead
and replace
PlatformHelpers
withPlatformHelpers.native
in react-navigation/src/createNavigationContainer.jsfindNodeHandle:
FlatList need it
FlatList and SectionList:
ported from [email protected]