Compare commits

...
Author SHA1 Message Date
Mike Grabowski 418a0b27df [0.25.0] Bump version numbers 2016-05-04 18:32:17 +02:00
Mike Grabowski 938fa5a012 Revert "[0.25.0] Bump version numbers"
This reverts commit 07888e5efd.
2016-05-04 18:32:10 +02:00
Konstantin Raev 0eb187958d Fixed path to regenerator-runtime
Summary:
Since 0.8.43 regenerator has regenerator-runtime dependency.
Fixes one js test in trunk
Closes https://github.com/facebook/react-native/pull/7351

Reviewed By: davidaurelio

Differential Revision: D3252699

Pulled By: bestander

fb-gh-sync-id: cedb122eb8e9f3a5e40a5313482bc2282511c71e
fbshipit-source-id: cedb122eb8e9f3a5e40a5313482bc2282511c71e
2016-05-04 17:46:36 +02:00
Konstantin Raev 26e506f130 fixed website deployment condition logic
Summary:Rookie mistake I made.

**Test plan (required)**

See that https://circleci.com/gh/facebook/react-native/5462 succeeds deploying the website correctly.
Closes https://github.com/facebook/react-native/pull/7063

Differential Revision: D3196198

fb-gh-sync-id: 14fdc94fad0b1e5ff74cc90bb89d2bd1bf29bfa3
fbshipit-source-id: 14fdc94fad0b1e5ff74cc90bb89d2bd1bf29bfa3
2016-05-04 16:24:39 +02:00
Mike Grabowski 07888e5efd [0.25.0] Bump version numbers 2016-05-04 14:49:53 +02:00
Mike Grabowski 08da2cda0b Document how to disable YellowBox
Summary:As mentioned in #7121 by javache, this can already be disabled. Might be useful if users upgrade to 0.25 and want to hide warnings about wrong React imported (something they can't really control until community upgrades).

This should be mentioned in the release notes once it's merged.
Closes https://github.com/facebook/react-native/pull/7140

Differential Revision: D3212212

fb-gh-sync-id: 7a7afa2b7925e16d6ebfd20f4fe26d1cb9d603e5
fbshipit-source-id: 7a7afa2b7925e16d6ebfd20f4fe26d1cb9d603e5
2016-05-04 14:05:37 +02:00
Mike Grabowski b4ba7b5533 Update imports in generated projects
Summary:Fixes warnings when React API is used by requiring 'react-native'.
Closes https://github.com/facebook/react-native/pull/7060

Differential Revision: D3196109

Pulled By: mkonicek

fb-gh-sync-id: b47afc138cd7909ad53c0d67a65e3a124b87134b
fbshipit-source-id: b47afc138cd7909ad53c0d67a65e3a124b87134b
2016-05-04 14:05:03 +02:00
Dave Miller bcf91bcd16 Fix crash caused by accessibility being turned on and using a Modal
Summary: When the ModalHostView is added as a child of whatever view holds it, if accessibility is turned on, Android will walk up to the root and then walk all children of the child and verify that they are indeed children of the root.  Since ModalHostView actually adds its children to a new ReactDialogViewGroup which has the Dialog as a parent, there is a disagreement about the tree deep in the bowels of View when it performs that walk.  The trick is to stop from adding the children of the ModalHostView when walking for accessibility.  The accessibility of those children views are properly handled by the hosting Dialog.

Reviewed By: andreicoman11

Differential Revision: D3230033

fb-gh-sync-id: 1e5ac334c996b1d5f50c75ded60805d8b871477a
fbshipit-source-id: 1e5ac334c996b1d5f50c75ded60805d8b871477a
2016-05-04 14:04:06 +02:00
Joshua Sierles 028936334c Use latest simulator by not specifying the OS version
Summary:Appetize asked for this so they can better support us, since they will usually have more simulators available for the latest versions.
Closes https://github.com/facebook/react-native/pull/7061

Differential Revision: D3196110

Pulled By: mkonicek

fb-gh-sync-id: 2406ab6e1ee352f0148957e851d7f483a2182f90
fbshipit-source-id: 2406ab6e1ee352f0148957e851d7f483a2182f90
2016-05-04 14:03:53 +02:00
Mike Grabowski 2e6fd4af4a [0.25.0-rc] Bump version numbers 2016-04-18 20:49:25 +02:00
12 changed files with 33 additions and 16 deletions
@@ -10,7 +10,7 @@
*/
'use strict';
require('regenerator/runtime');
require('regenerator-runtime/runtime');
var React = require('react');
var ReactNative = require('react-native');
@@ -22,7 +22,7 @@
/* eslint strict: 0 */
/* globals GLOBAL: true, window: true */
require('regenerator/runtime');
require('regenerator-runtime/runtime');
if (typeof GLOBAL === 'undefined') {
global.GLOBAL = this;
+1 -1
View File
@@ -4,7 +4,7 @@ package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
Pod::Spec.new do |s|
s.name = "React"
s.version = package['version']
s.version = "0.25.0"
s.summary = package['description']
s.description = <<-DESC
React Native apps are built using the React JS
+1 -1
View File
@@ -1,4 +1,4 @@
VERSION_NAME=1000.0.0-master
VERSION_NAME=0.25.0
GROUP=com.facebook.react
POM_NAME=ReactNative
@@ -11,6 +11,8 @@ package com.facebook.react.views.modal;
import javax.annotation.Nullable;
import java.util.ArrayList;
import android.app.Dialog;
import android.content.Context;
import android.content.DialogInterface;
@@ -99,6 +101,12 @@ public class ReactModalHostView extends ViewGroup {
mHostView.removeView(child);
}
@Override
public void addChildrenForAccessibility(ArrayList<View> outChildren) {
// Explicitly override this to prevent accessibility events being passed down to children
// Those will be handled by the mHostView which lives in the dialog
}
public void dismiss() {
if (mDialog != null) {
mDialog.dismiss();
+10 -1
View File
@@ -31,7 +31,16 @@ Using `console.warn` will display an on-screen log on a yellow background. Click
You can use `console.error` to display a full screen error on a red background.
These boxes only appear when you're running your app in dev mode.
By default, the warning box is enabled in `__DEV__`. Set the following flag to disable it:
```js
console.disableYellowBox = true;
console.warn('YellowBox is disabled.');
```
Specific warnings can be ignored programmatically by setting the array:
```js
console.ignoredYellowBox = ['Warning: ...'];
```
Strings in `console.ignoredYellowBox` can be a prefix of the warning that should be ignored.
### Chrome Developer Tools
To debug the JavaScript code in Chrome, select `Debug JS Remotely` from the developer menu. This will open a new tab at [http://localhost:8081/debugger-ui](http://localhost:8081/debugger-ui).
+1 -1
View File
@@ -17,6 +17,6 @@ global.__fbBatchedBridgeConfig = {
};
global.Promise = require('promise');
global.regeneratorRuntime = require.requireActual('regenerator/runtime');
global.regeneratorRuntime = require.requireActual('regenerator-runtime/runtime');
jest.setMock('ErrorUtils', require('ErrorUtils'));
@@ -3,9 +3,9 @@
* https://github.com/facebook/react-native
*/
import React, {
import React, { Component } from 'react';
import {
AppRegistry,
Component,
StyleSheet,
Text,
View
+2 -2
View File
@@ -4,9 +4,9 @@
* @flow
*/
import React, {
import React, { Component } from 'react';
import {
AppRegistry,
Component,
StyleSheet,
Text,
View
+3 -3
View File
@@ -1,6 +1,6 @@
{
"name": "react-native",
"version": "1000.0.0",
"version": "0.25.0",
"description": "A framework for building native apps using React",
"license": "BSD-3-Clause",
"repository": {
@@ -167,7 +167,7 @@
"react-timer-mixin": "^0.13.2",
"react-transform-hmr": "^1.0.4",
"rebound": "^0.0.13",
"regenerator": "^0.8.36",
"regenerator-runtime": "^0.9.5",
"sane": "^1.2.0",
"semver": "^5.0.3",
"source-map": "^0.4.4",
@@ -192,4 +192,4 @@
"react": "^0.14.5",
"shelljs": "0.6.0"
}
}
}
+2 -2
View File
@@ -498,8 +498,8 @@ var Modal = React.createClass({
var appParams = {route: metadata.title};
var encodedParams = encodeURIComponent(JSON.stringify(appParams));
var url = metadata.platform === 'android'
? `https://appetize.io/embed/q7wkvt42v6bkr0pzt1n0gmbwfr?device=nexus5&scale=65&autoplay=false&orientation=portrait&osVersion=6.0&deviceColor=white&params=${encodedParams}`
: `https://appetize.io/embed/7vdfm9h3e6vuf4gfdm7r5rgc48?device=iphone6s&scale=60&autoplay=false&orientation=portrait&osVersion=9.2&deviceColor=white&params=${encodedParams}`;
? `https://appetize.io/embed/q7wkvt42v6bkr0pzt1n0gmbwfr?device=nexus5&scale=65&autoplay=false&orientation=portrait&deviceColor=white&params=${encodedParams}`
: `https://appetize.io/embed/7vdfm9h3e6vuf4gfdm7r5rgc48?device=iphone6s&scale=60&autoplay=false&orientation=portrait&deviceColor=white&params=${encodedParams}`;
return (
<div>
+1 -1
View File
@@ -96,7 +96,7 @@ if (!CI_PULL_REQUEST && CIRCLE_PROJECT_USERNAME === `facebook`) {
if (currentCommit === latestTagCommit) {
echo(`------------ DEPLOYING latest`);
// leave only releases and blog folder
rm(`-rf`, ls(`*`).filter(name => (name !== 'releases') || (name !== 'blog')));
rm(`-rf`, ls(`*`).filter(name => (name !== 'releases') && (name !== 'blog')));
cd(`../..`);
if (exec(`RN_VERSION=${version} RN_LATEST_VERSION=${latestVersion} \
RN_AVAILABLE_DOCS_VERSIONS=${versions} node server/generate.js`).code !== 0) {