Compare commits

...
Author SHA1 Message Date
James Ide 73cbab7412 Update package.json and React.podspec to 0.7.1 2015-07-10 13:04:48 -07:00
Evan SolomonandJames Ide 15ee47f32d Bump babel-core version to enforce params option name change 2015-07-10 12:58:13 -07:00
Evan SolomonandJames Ide 484c6724b8 Rename babel's es6.parameters.rest option to es6.parameters
The old name was deprecated and spits out a bunch of annoying log
messages now.

See https://github.com/babel/babel/commit/c0fd4c1f9e0b18231f585c4fa793e4cb0e01aed1
2015-07-10 12:58:03 -07:00
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
6 changed files with 8 additions and 9 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.1"
s.summary = "Build high quality mobile apps using React."
s.description = <<-DESC
React Native apps are built using the React JS
+2 -2
View File
@@ -1,6 +1,6 @@
{
"name": "react-native",
"version": "0.6.0",
"version": "0.7.1",
"description": "A framework for building native apps using React",
"license": "BSD-3-Clause",
"repository": {
@@ -47,7 +47,7 @@
"dependencies": {
"absolute-path": "0.0.0",
"babel": "5.4.3",
"babel-core": "^5.6.4",
"babel-core": "^5.6.11",
"bluebird": "^2.9.21",
"chalk": "^1.0.0",
"connect": "2.8.3",
+1 -1
View File
@@ -10,7 +10,7 @@
"es6.constants",
"es6.classes",
"es6.destructuring",
"es6.parameters.rest",
"es6.parameters",
"es6.properties.computed",
"es6.properties.shorthand",
"es6.spread",
+1 -1
View File
@@ -23,7 +23,7 @@ function transform(srcTxt, filename, options) {
'es6.blockScoping',
'es6.classes',
'es6.destructuring',
'es6.parameters.rest',
'es6.parameters',
'es6.properties.computed',
'es6.properties.shorthand',
'es6.spread',