mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Compare commits
10
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
418a0b27df | ||
|
|
938fa5a012 | ||
|
|
0eb187958d | ||
|
|
26e506f130 | ||
|
|
07888e5efd | ||
|
|
08da2cda0b | ||
|
|
b4ba7b5533 | ||
|
|
bcf91bcd16 | ||
|
|
028936334c | ||
|
|
2e6fd4af4a |
@@ -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
@@ -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,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
@@ -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
@@ -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
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
* @flow
|
||||
*/
|
||||
|
||||
import React, {
|
||||
import React, { Component } from 'react';
|
||||
import {
|
||||
AppRegistry,
|
||||
Component,
|
||||
StyleSheet,
|
||||
Text,
|
||||
View
|
||||
|
||||
+3
-3
@@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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¶ms=${encodedParams}`
|
||||
: `https://appetize.io/embed/7vdfm9h3e6vuf4gfdm7r5rgc48?device=iphone6s&scale=60&autoplay=false&orientation=portrait&osVersion=9.2&deviceColor=white¶ms=${encodedParams}`;
|
||||
? `https://appetize.io/embed/q7wkvt42v6bkr0pzt1n0gmbwfr?device=nexus5&scale=65&autoplay=false&orientation=portrait&deviceColor=white¶ms=${encodedParams}`
|
||||
: `https://appetize.io/embed/7vdfm9h3e6vuf4gfdm7r5rgc48?device=iphone6s&scale=60&autoplay=false&orientation=portrait&deviceColor=white¶ms=${encodedParams}`;
|
||||
|
||||
return (
|
||||
<div>
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user