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 | |
|---|---|---|---|
|
|
8d26f39d6f | ||
|
|
7f68a350ff | ||
|
|
f5f0b7deed | ||
|
|
3d4bfe6d14 | ||
|
|
7f6d9d451d | ||
|
|
7e2c393f4e | ||
|
|
5785668d6e | ||
|
|
bb256efacf | ||
|
|
481b3358a9 | ||
|
|
d7f1bdc56e |
@@ -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
@@ -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,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)
|
||||
|
||||
@@ -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"
|
||||
|
||||
 
|
||||
|
||||
+6
-14
@@ -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
|
||||
|
||||
|
||||
@@ -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 });
|
||||
}
|
||||
});
|
||||
|
||||
@@ -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
@@ -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",
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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'}>← Prev</a>}
|
||||
{metadata.next && <a className="docs-next" href={metadata.next + '.html#content'}>Next →</a>}
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 295 KiB After Width: | Height: | Size: 266 KiB |
Reference in New Issue
Block a user