Compare commits

...
Author SHA1 Message Date
Dan HorriganandMartin Konicek 8d26f39d6f Updated the Android Setup with correct SDK package to install.
Summary:The "Android Support Library" package is now named "Local Maven repository for Support Libraries", so this updates the docs and screenshot accordingly.

Closes https://github.com/facebook/react-native/pull/6185

Reviewed By: mkonicek

Differential Revision:D3017638
Ninja: oss only (rn website)

Pulled By: mkonicek

fb-gh-sync-id: 3559a9f09930e7606af7912e7aaee3c4215c1b03
shipit-source-id: 3559a9f09930e7606af7912e7aaee3c4215c1b03
2016-03-07 01:29:33 +00:00
Martin Konicek 7f68a350ff Update known issues
Summary: CameraRoll and Spinner have been released.

Reviewed By: mkonicek

Differential Revision:D2990290
Ninja: oss docs

fb-gh-sync-id: c0611a112f5488b1a7bcb67b6b39099200e7a14e
shipit-source-id: c0611a112f5488b1a7bcb67b6b39099200e7a14e
2016-03-01 15:50:58 +00:00
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
15 changed files with 21 additions and 60 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)
+1 -1
View File
@@ -52,7 +52,7 @@ React Native Android use [gradle](https://docs.gradle.org) as a build system. We
1. Open the Android SDK Manager (**on Mac** start a new shell and run `android`); in the window that appears make sure you check:
* Android SDK Build-tools version 23.0.1
* Android 6.0 (API 23)
* Android Support Repository
* Local Maven repository for Support Libraries (this is called Android Support Repository in older versions)
2. Click "Install Packages"
![SDK Manager window](img/AndroidSDK1.png) ![SDK Manager window](img/AndroidSDK2.png)
+6 -14
View File
@@ -15,26 +15,18 @@ However, you can still use the Console feature of the devtools, and debugging Ja
### Missing Modules and Native Views
This is an initial release of React Native Android and therefore not all of the views present on iOS are released on Android. We are very much interested in the communities' feedback on the next set of modules and views for Open Source. Not all native views between iOS and Android have a 100% equivalent representation, here it will be necessary to use a counterpart eg using ProgressBar on Android in place of ActivityIndicator on iOS.
Our provisional plan for common views and modules includes:
The work on React Native for Android started later than React Native for iOS. Not all of the views present on iOS have been released on Android yet.
#### Views
```
Maps
Modal
Spinner (http://developer.android.com/guide/topics/ui/controls/spinner.html)
Slider (known as SeekBar)
```
- Maps - Please use Leland Richardson's [react-native-maps](https://github.com/lelandrichardson/react-native-maps) as it is more feature-complete than our internal implementation at fb.
- Modal
- Slider (also known as SeekBar)
#### Modules
```
Camera Roll
Media
PushNotificationIOS
```
- Media
- PushNotificationIOS
### Some props are only supported on one platform
-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>}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 295 KiB

After

Width:  |  Height:  |  Size: 266 KiB