Compare commits

...
Author SHA1 Message Date
Martin Konicek f5f0b7deed [0.21.0] Bump version numbers 2016-03-01 15:13:35 +00:00
Martin Konicek 3d4bfe6d14 Disable menu option for HMR, it's not ready just yet 2016-03-01 15:13:35 +00:00
Matthew Dapena-TretterandMartin Konicek 7f6d9d451d Only freeze valid attributes in mountComponent
Reviewed By: spicyj

Differential Revision: D2939910

fb-gh-sync-id: 2efe6ecd6d888d4185a8cc74ba9adbe7c68bcd3b
shipit-source-id: 2efe6ecd6d888d4185a8cc74ba9adbe7c68bcd3b
2016-03-01 15:13:35 +00:00
Jack WinkandMartin Konicek 7e2c393f4e Update ScrollResponder.js to use new scrollTo API
Summary:`scrollResponderInputMeasureAndScrollToKeyboard` is the only non-deprecated method in `ScrollResponder.js` that doesn't use the [new `scrollTo` API](https://github.com/facebook/react-native/commit/6941c4e027abb582d7cef0e7c3b9b7ebf51bc070). The other method that uses the deprecated API (`scrollResponderScrollWithoutAnimationTo`) is also deprecated, so it has been left unaltered.
Closes https://github.com/facebook/react-native/pull/5990

Differential Revision: D2953916

Pulled By: nicklockwood

fb-gh-sync-id: d692c598e6b85d1050e58b87146d01b031653a49
shipit-source-id: d692c598e6b85d1050e58b87146d01b031653a49
2016-03-01 15:13:35 +00:00
Konstantin Raev 5785668d6e Fixed anchro links in Markdown documentation 2016-02-22 17:14:39 +00:00
Martin Konicek bb256efacf Revert "Move react to peerDependencies"
This reverts commit 9f01f96770.
2016-02-20 21:26:31 -08:00
Martin Konicek 481b3358a9 Revert "Add npm-shrinkwrap.json to npm"
This reverts commit 75869519e6.
2016-02-20 21:26:19 -08:00
Martin Konicek d7f1bdc56e [0.21.0-rc] Bump version numbers 2016-02-20 21:26:16 -08:00
12 changed files with 14 additions and 45 deletions
+1 -1
View File
@@ -461,7 +461,7 @@ var ScrollResponderMixin = {
if (this.preventNegativeScrollOffset) {
scrollOffsetY = Math.max(0, scrollOffsetY);
}
this.scrollResponderScrollTo(0, scrollOffsetY);
this.scrollResponderScrollTo({x: 0, y: scrollOffsetY, animated: true});
this.additionalOffset = 0;
this.preventNegativeScrollOffset = false;
@@ -185,7 +185,11 @@ ReactNativeBaseComponent.Mixin = {
var tag = ReactNativeTagHandles.allocateTag();
if (__DEV__) {
deepFreezeAndThrowOnMutationInDev(this._currentElement.props);
for (var key in this.viewConfig.validAttributes) {
if (this._currentElement.props.hasOwnProperty(key)) {
deepFreezeAndThrowOnMutationInDev(this._currentElement.props[key]);
}
}
}
var updatePayload = ReactNativeAttributePayload.create(
+1 -1
View File
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "React"
s.version = "0.0.0-master"
s.version = "0.21.0"
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,4 +1,4 @@
VERSION_NAME=0.12.0-SNAPSHOT
VERSION_NAME=0.21.0
GROUP=com.facebook.react
POM_NAME=ReactNative
@@ -274,17 +274,6 @@ public class DevSupportManagerImpl implements DevSupportManager {
handleReloadJS();
}
});
options.put(
mDevSettings.isHotModuleReplacementEnabled()
? mApplicationContext.getString(R.string.catalyst_hot_module_replacement_off)
: mApplicationContext.getString(R.string.catalyst_hot_module_replacement),
new DevOptionHandler() {
@Override
public void onOptionSelected() {
mDevSettings.setHotModuleReplacementEnabled(!mDevSettings.isHotModuleReplacementEnabled());
handleReloadJS();
}
});
options.put(
mDevSettings.isReloadOnJSChangeEnabled()
? mApplicationContext.getString(R.string.catalyst_live_reload_off)
-8
View File
@@ -82,13 +82,5 @@ module.exports = yeoman.generators.NamedBase.extend({
{name: this.name}
);
}
},
install: function() {
if (this.options.upgrade) {
return;
}
this.npmInstall('react', { '--save': true });
}
});
-13
View File
@@ -44,19 +44,6 @@ module.exports = function upgrade(args, config) {
'https://github.com/facebook/react-native/releases/tag/v' + semver.major(v) + '.' + semver.minor(v) + '.0'
)
);
// >= v0.21.0, we require react to be a peer depdendency
if (semver.gte(v, '0.21.0') && !pak.dependencies['react']) {
console.log(
chalk.yellow(
'\nYour \'package.json\' file doesn\'t seem to have \'react\' as a dependency.\n' +
'\'react\' was changed from a dependency to a peer dependency in react-native v0.21.0.\n' +
'Therefore, it\'s necessary to include \'react\' in your project\'s dependencies.\n' +
'Just run \'npm install --save react\', then re-run \'react-native upgrade\'.\n'
)
);
return Promise.resolve();
}
} else {
console.log(
chalk.yellow(
+3 -6
View File
@@ -1,6 +1,6 @@
{
"name": "react-native",
"version": "0.0.0-master",
"version": "0.21.0",
"description": "A framework for building native apps using React",
"license": "BSD-3-Clause",
"repository": {
@@ -92,8 +92,7 @@
"PATENTS",
"README.md",
"jestSupport",
".flowconfig",
"npm-shrinkwrap.json"
".flowconfig"
],
"scripts": {
"test": "NODE_ENV=test jest",
@@ -103,9 +102,6 @@
"bin": {
"react-native": "local-cli/wrong-react-native.js"
},
"peerDependencies": {
"react": "^0.14.5"
},
"dependencies": {
"absolute-path": "^0.0.0",
"art": "^0.10.0",
@@ -137,6 +133,7 @@
"optimist": "^0.6.1",
"progress": "^1.1.8",
"promise": "^7.1.1",
"react": "^0.14.5",
"react-timer-mixin": "^0.13.2",
"react-transform-hmr": "^1.0.2",
"rebound": "^0.0.13",
-1
View File
@@ -28,7 +28,6 @@ repo_root=$(pwd)
git branch | grep -o ${RELEASE}-stable && error "Branch already exists"
java -version 2>&1 | grep ${JAVA_VERSION} || error "Java version must be 1.7.x in order to generate Javadoc. Check: java -version"
git pull || error "Couldn't pull from remote repository"
git checkout -b ${RELEASE}-stable || error "Couldn't create branch"
success "Created release branch: ${RELEASE}-stable"
+1 -1
View File
@@ -20,7 +20,7 @@ var Header = React.createClass({
<H {...this.props}>
<a className="anchor" name={slug}></a>
{this.props.children}
{' '}<a className="hash-link" href={'#' + slug}>#</a>
{' '}<a className="hash-link" href={this.props.path + '#' + slug}>#</a>
</H>
);
}
+1
View File
@@ -821,6 +821,7 @@ Parser.prototype.tok = function() {
return (
<Header
level={this.token.depth}
path={this.options.path}
toSlug={this.token.text}>
{this.inline.output(this.token.text)}
</Header>
+1 -1
View File
@@ -30,7 +30,7 @@ var DocsLayout = React.createClass({
level={1}
path={'docs/' + metadata.filename}
/>
<Marked>{content}</Marked>
<Marked path={metadata.permalink}>{content}</Marked>
<div className="docs-prevnext">
{metadata.previous && <a className="docs-prev" href={metadata.previous + '.html#content'}>&larr; Prev</a>}
{metadata.next && <a className="docs-next" href={metadata.next + '.html#content'}>Next &rarr;</a>}