-
Notifications
You must be signed in to change notification settings - Fork 404
0.58.3 Discussion #81
Comments
|
I created |
flow still not work under windows. but arm64 supported is a good thing. |
@Bardiamist looks like the Flow 0.86 commit has been reverted by a mistake few commits after. I am not entirely sure how it happened, I am going to check it and release a patch. |
Looks like Flow commit was not the only one that was accidentally reverted while we were working on a 0.58 release candidate. Apologies for the confusion, as the commits were listed in the changelog. Here is a full list of commits that are being released under 0.58.2: facebook/react-native@de60e86...8f283b9 |
@grabbou Does 64-bit version android release build included in the 0.58.x? |
@mikehardy thanks for the info~ I go through the related PR, I could not find the merged PR for this change, and also there is no any info in the 0.58 changelog, but I do see a comment in Maybe we should wait till RN 0.59 ? |
@malonguwa - ah - I see what you mean, thanks for the link to that comment. I suppose this must be related to the JSC upgrade, which will land with 0.59 and I suppose the link I sent to the code line was necessary infrastructure but doesn't meet the Play Store requirement that all the included libraries are 64-bit as well. 0.59 is coming shortly either way so not long of a wait. |
For anyone else upgrading, it might be worth mentioning that an |
Yes I kept an eye on the issues and it seems that when migrating to 0.58 from 0.57 there is only one small native side change required -> facebook/react-native#23183 (comment) |
Is there anyone can have more info about the ScrollView breaking change in RN 0.58 ? "Public methods of components converted to ES6 classes are no longer bound to their component instance. For ScrollView, the affected methods are setNativeProps, getScrollResponder, getScrollableNode, getInnerViewNode, scrollTo, scrollToEnd, scrollWithoutAnimationTo, and flashScrollIndicators, ............ Therefore, it is no longer safe to pass these method by reference as callbacks to functions. Auto-binding methods to component instances was a behaviour of createReactClass that we decided to not preserve when switching over to ES6 classes." can we still use something like this ? <ScrollView ref={"myScrollView"}> Thanks a lot. |
@malonguwa you should use React's createRef() api. Initialize const scrollViewRef = React.createRef() Render <ScrollView ref={this.scrollViewRef}> Using this.scrollViewRef.current.scrollTo() For above question you can use this.scrollViewRef.current.scrollToEnd() directly but it unsafe to do like below because scrollToEnd() won't bind to ScrollView <Button title="Scroll Me" onPress={this.scrollViewRef.current.scrollToEnd} /> |
Will these changes (Deploy Flow.js v0.89 facebook/react-native@24f8d4d#diff-d06df9030a0720f038bd694df1d1ca1f) get into the new version of react-native? We are waiting for support of |
|
Flow commit will get into next version of React Native, we haven't cut it
yet.
…On Fri, 1 Feb 2019 at 12:28 Sunny Luo ***@***.***> wrote:
- Fix Native Rotation Android ***@***.***
<facebook/react-native@e405e84>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#81 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACWcxrCt6ZLcNbDDCTcSbbIBj_nJIxe9ks5vJCTxgaJpZM4aRzGc>
.
|
I've just run Anyone else seen this behaviour? Is it an issue with the release, expected behaviour, or something weird in my config? |
Please include this PR in next patch release facebook/react-native#23276 |
@guhungry thanks for the detailed explanation! much appreciated it! Do we still need to do some clean up in the ComponentWillUnMount to make the this.scrollViewRef = null or something else ? And if this is unsafe to do this:
Thanks again! |
Waiting for one PR to land in master and will release a new version. @malonguwa - I would recommend looking for an answer to your question on StackOverflow or other medium (specially in regards to your question about passing refs to children). |
It would be appreciated if facebook/react-native@728a35f could be included in next patch release |
I haven't realised it yet (was facing some test failures). Will look into cherry-picking your commit too @forsen today. |
I updated from react-native 0.57 to 0.58.3 and got this same error infinitered/ignite-andross#244, it was also solved by bumping the build tools to version 28, was this intented? can it be documented on the changelog? |
@ospfranco a PR would surely be appreciated ;) Thanks for pointing it out anyway, I'll add it to my notes and try to add them asap |
@ospfranco RN exports Android tools versions and it should be used in native modules to make RN upgrades smoother. See https://github.com/react-native-community/react-native-linear-gradient/blob/master/android/build.gradle |
@kelset will do :) |
@ospfranco it seems that a native module you're using trying to use hard-coded build tools version that is different from RN. So a native module developer should try to use Android tools versions RN project exports, then use hard coded one. See the example provided in the previous comment. |
ah, so on a clean react-native project there would be no need to bump the build tools? is that what you mean? well, I really don't know which library was causing the issue, it was solved the moment I bumped the build tooling version, should I still create a PR updating the changelog? |
with clean RN project you'll see a warning about build tools 28.0.2, but it compiles and works just fine. |
Awesome @ospfranco - I am opening a new issue to track cherry-picks for 0.58.4 |
I think the issue is caused by native modules using build tools version
different than RN, and it should be fixed in native modules. And RN
shouldn't force build tools version on subprojects.
|
Updating changelog for 0.58.4 would be great |
Yeah, sorry :( we have been busy in the past few days - as always, a PR would surely help |
Conversation on this thread are limited to 0.58.0 release's major issues and backport (cherry-pick) requests from commits that are already on master - so that we can then produce a 0.58.4 release in the near future.
An example of a good such request is a bug fix for a serious issue that has been merged into master but did not make the 0.58.3 cut.
In other words, if you cannot point to a particular commit on master, then your request likely belongs as a new issue in http://github.com/facebook/react-native/issues.
If the commit you request to cherry pick is a complicated port, you will be asked to create the PR to the 0.58-stable branch yourself, in order to ensure that the process proceeds smoothly.
The text was updated successfully, but these errors were encountered: