Compare commits

...
Author SHA1 Message Date
James Ide 6b0cb9243f [dist] Update package.json and CocoaPods versions to 0.7.0-rc.2
This release includes a fix for ListViews so that they no longer produce a redbox. The versioning uses the "rc.#" style that http://semver.org/ uses.

Also went back to using tags for CocoaPods. Will create the git tag v0.7.0-rc.2 that points to this commit.
2015-06-26 15:50:17 -07:00
James Ide 2ed3f7d129 [ListView] Defer measurement one frame after componentDidMount to fix error
Summary:
When `UIManager.measure` is called from `componentDidMount` it causes the error "Attempted to measure layout but offset or dimensions were NaN". Deferring the layout by one frame solves this problem. Layout measurement is already asynchronous anyway, so I believe adding the `requestAnimationFrame` call doesn't affect the program's correctness.

Fixes #1749

Closes https://github.com/facebook/react-native/pull/1750
Github Author: James Ide <ide@jameside.com>

Test Plan:
 Load UIExplorer and no longer get a redbox that says "Attempted to measure layout but offset or dimensions were NaN".
2015-06-26 15:42:41 -07:00
Brent Vatne 8428fa4ad9 [Podspec] Point to specific commit for Cocoapods 2015-06-25 12:26:11 -07:00
Brent Vatne da0a97d54d [Network] Remove another unnecessary import 2015-06-25 12:06:51 -07:00
Brent Vatne 94e91d6114 [Network] Remove unnecessary imports from RCTHTTPRequestHandler 2015-06-25 12:05:45 -07:00
Brent Vatne 7fd3a3a8e5 [Package.json] Rename version to -rc 2015-06-25 11:26:00 -07:00
Brent Vatne 30f739b2fb [Podspec] Update for 0.7.0-rc 2015-06-25 11:17:32 -07:00
Brent Vatne fd2c8465cb [Package.json] Update npm package version to 0.7.0 2015-06-25 11:13:24 -07:00
4 changed files with 5 additions and 6 deletions
@@ -276,7 +276,9 @@ var ListView = React.createClass({
},
componentDidUpdate: function() {
this._measureAndUpdateScrollProps();
this.requestAnimationFrame(() => {
this._measureAndUpdateScrollProps();
});
},
onRowHighlighted: function(sectionID, rowID) {
@@ -11,9 +11,6 @@
#import "RCTAssert.h"
#import "RCTConvert.h"
#import "RCTEventDispatcher.h"
#import "RCTImageLoader.h"
#import "RCTLog.h"
#import "RCTUtils.h"
@interface RCTHTTPRequestHandler () <NSURLSessionDataDelegate>
+1 -1
View File
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "React"
s.version = "0.4.4"
s.version = "0.7.0-rc.2"
s.summary = "Build high quality mobile apps using React."
s.description = <<-DESC
React Native apps are built using the React JS
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "react-native",
"version": "0.6.0",
"version": "0.7.0-rc.2",
"description": "A framework for building native apps using React",
"license": "BSD-3-Clause",
"repository": {