Compare commits

...
Author SHA1 Message Date
Konstantin Raev 953f9b8d0a [0.34.1] Bump version numbers 2016-09-27 19:27:12 +01:00
Eric RozellandKonstantin Raev e6c26b71ed Update getCommands.js
Summary:
Fixes issue with path for Windows. cc grabbou
Closes https://github.com/facebook/react-native/pull/9898

Differential Revision: D3864923

fbshipit-source-id: e785bfe0f01f9cf0c1964518fed03e2090300a31
2016-09-27 19:27:00 +01:00
Héctor Ramos 85c3cffd48 [Website] Load React Native Web Player from MaxCDN. 2016-09-23 15:51:37 -07:00
Mike Grabowski c1aa68b422 [0.34.0] Bump version numbers 2016-09-23 15:11:53 +01:00
David AurelioandKonstantin Raev d3f35c31a3 throwing for unresolved modules: flip logic
Summary:
The current test checks whether the target platform is `'ios'`. When building with windows, errors will also be swallowed silently.

This adds a check whether the target platform is `'android'`, where we have to avoid throwing for FB-internal reasons.

Reviewed By: martinbigio

Differential Revision: D3907025

fbshipit-source-id: 5abeb06b9121265fe1aa3932ad1785f148f04ddf
2016-09-23 12:09:31 +01:00
James Ide cd33c0d521 [0.34.0-rc.1] Bump version numbers 2016-09-23 00:53:06 -07:00
Andrew NicolaouandJames Ide e4e22cca2b Add .mm to RCTNetwork subspec
Summary:
Without this, `Libraries/Network/RCTNetworking.mm` is not matched,
causing a "Native module cannot be null" error when integrating into
an existing Swift iOS project.

I've tested this fix with an iOS Swift project following the
"Integration With Existing Apps" [1] tutorial and the error does
not appear.

[1] https://facebook.github.io/react-native/docs/integration-with-existing-apps.html
Closes https://github.com/facebook/react-native/pull/9904

Differential Revision: D3873011

fbshipit-source-id: d69395190d3865aa1fc87966a37981b53beea115
2016-09-23 00:52:37 -07:00
James Ide bd84b81114 [React] Change React version to ~15.3.1 (no more RC) 2016-09-15 14:44:13 -07:00
Mike Grabowski d5e6737351 [0.34.0-rc.0] Bump version numbers 2016-09-09 15:48:14 +02:00
6 changed files with 11 additions and 11 deletions
+2 -2
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.34.1"
s.summary = package['description']
s.description = <<-DESC
React Native apps are built using the React JS
@@ -81,7 +81,7 @@ Pod::Spec.new do |s|
s.subspec 'RCTNetwork' do |ss|
ss.dependency 'React/Core'
ss.source_files = "Libraries/Network/*.{h,m}"
ss.source_files = "Libraries/Network/*.{h,m,mm}"
ss.preserve_paths = "Libraries/Network/*.js"
end
+1 -1
View File
@@ -1,4 +1,4 @@
VERSION_NAME=1000.0.0-master
VERSION_NAME=0.34.1
GROUP=com.facebook.react
POM_NAME=ReactNative
+1 -1
View File
@@ -13,7 +13,7 @@ module.exports = function getCommands() {
const appRoot = process.cwd();
const plugins = findPlugins([appRoot])
.map(pathToCommands => {
const name = pathToCommands.split('/')[0];
const name = pathToCommands.split(path.sep)[0];
return attachPackage(
require(path.join(appRoot, 'node_modules', pathToCommands)),
+4 -4
View File
@@ -1,6 +1,6 @@
{
"name": "react-native",
"version": "1000.0.0",
"version": "0.34.1",
"description": "A framework for building native apps using React",
"license": "BSD-3-Clause",
"repository": {
@@ -129,7 +129,7 @@
"react-native": "local-cli/wrong-react-native.js"
},
"peerDependencies": {
"react": "15.3.1-rc.2"
"react": "~15.3.1"
},
"dependencies": {
"absolute-path": "^0.0.0",
@@ -213,7 +213,7 @@
"jest-runtime": "15.1.0",
"mock-fs": "^3.11.0",
"portfinder": "0.4.0",
"react": "15.3.1-rc.2",
"react": "~15.3.1",
"shelljs": "0.6.0"
}
}
}
+1 -1
View File
@@ -105,7 +105,7 @@ class Resolver {
preferNativePlatform: true,
fileWatcher: opts.fileWatcher,
cache: opts.cache,
shouldThrowOnUnresolvedErrors: (_, platform) => platform === 'ios',
shouldThrowOnUnresolvedErrors: (_, platform) => platform !== 'android',
transformCode: opts.transformCode,
extraNodeModules: opts.extraNodeModules,
assetDependencies: ['react-native/Libraries/Image/AssetRegistry'],
+2 -2
View File
@@ -12,7 +12,7 @@
var React = require('React');
var Prism = require('Prism');
var WEB_PLAYER_VERSION = '1.1.0';
var WEB_PLAYER_VERSION = '1.2.4';
/**
* Use the WebPlayer by including a ```ReactNativeWebPlayer``` block in markdown.
@@ -59,7 +59,7 @@ var WebPlayer = React.createClass({
style={{marginTop: 4}}
width='880'
height={this.parseParams(this.props.params).platform === 'android' ? '425' : '420'}
data-src={`//npmcdn.com/react-native-web-player@${WEB_PLAYER_VERSION}/index.html${hash}`}
data-src={`//cdn.rawgit.com/dabbott/react-native-web-player/gh-v${WEB_PLAYER_VERSION}/index.html${hash}`}
frameBorder='0'
/>
</div>