update to react-native 0.42

This commit is contained in:
Bart Akeley 2017-05-28 10:49:46 -05:00
parent deecd02152
commit 264404c787
9 changed files with 834 additions and 763 deletions

View file

@ -1,8 +1,3 @@
{ {
"presets": [ "presets": ["react-native"]
"react-native" // this is required for debugging with react-native/packager/transformer }
],
"plugins": [],
"sourceMaps": true // must be true react-native/packager/transformer using with node-module-debug
// because of some bugs from vscode-node-debug & vscode-react-native, "sourceMaps" cannot be "inline" or "both"
}

6
.buckconfig Normal file
View file

@ -0,0 +1,6 @@
[android]
target = Google Inc.:Google APIs:23
[maven_repositories]
central = https://repo1.maven.org/maven2

View file

@ -1,2 +1,47 @@
[library] [ignore]
; We fork some components by platform
.*/*[.]android.js
; Ignore "BUCK" generated dirs
<PROJECT_ROOT>/\.buckd/
; Ignore unexpected extra "@providesModule"
.*/node_modules/.*/node_modules/fbjs/.*
; Ignore duplicate module providers
; For RN Apps installed via npm, "Libraries" folder is inside
; "node_modules/react-native" but in the source repo it is in the root
.*/Libraries/react-native/React.js
.*/Libraries/react-native/ReactNative.js
[include]
[libs]
node_modules/react-native/Libraries/react-native/react-native-interface.js node_modules/react-native/Libraries/react-native/react-native-interface.js
node_modules/react-native/flow
flow/
[options]
emoji=true
module.system=haste
experimental.strict_type_args=true
munge_underscores=true
module.name_mapper='^[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> 'RelativeImageStub'
suppress_type=$FlowIssue
suppress_type=$FlowFixMe
suppress_type=$FixMe
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(4[0-2]\\|[1-3][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(4[0-2]\\|[1-3][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+
suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
unsafe.enable_getters_and_setters=true
[version]
^0.42.0

1
.gitattributes vendored Normal file
View file

@ -0,0 +1 @@
*.pbxproj -text

58
.gitignore vendored
View file

@ -1,5 +1,53 @@
android/.gradle # OSX
android/build #
android/app/build .DS_Store
node_modules
.vscode # Xcode
#
build/
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata
*.xccheckout
*.moved-aside
DerivedData
*.hmap
*.ipa
*.xcuserstate
project.xcworkspace
# Android/IntelliJ
#
build/
.idea
.gradle
local.properties
*.iml
# node.js
#
node_modules/
npm-debug.log
yarn-error.log
# BUCK
buck-out/
\.buckd/
*.keystore
# fastlane
#
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
# screenshots whenever they are needed.
# For more information about the recommended setup visit:
# https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Gitignore.md
fastlane/report.xml
fastlane/Preview.html
fastlane/screenshots

1
.watchmanconfig Normal file
View file

@ -0,0 +1 @@
{}

View file

@ -19,7 +19,7 @@ public class MainApplication extends Application implements ReactApplication {
private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) { private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) {
@Override @Override
protected boolean getUseDeveloperSupport() { public boolean getUseDeveloperSupport() {
return BuildConfig.DEBUG; return BuildConfig.DEBUG;
} }

View file

@ -10,9 +10,9 @@
"dependencies": { "dependencies": {
"babel-preset-es2015": "^6.24.0", "babel-preset-es2015": "^6.24.0",
"immutable": "^3.8.1", "immutable": "^3.8.1",
"ramda": "^0.23.0", "ramda": "^0.24.0",
"react": "^15.4.2", "react": "~15.4.1",
"react-native": "^0.40.0", "react-native": "~0.42.0",
"react-native-drawer": "^2.3.0", "react-native-drawer": "^2.3.0",
"react-native-looped-carousel": "^0.1.5", "react-native-looped-carousel": "^0.1.5",
"react-native-material-ui": "^1.7.0", "react-native-material-ui": "^1.7.0",
@ -20,7 +20,7 @@
"react-native-scrollable-tab-view": "^0.7.4", "react-native-scrollable-tab-view": "^0.7.4",
"react-native-vector-icons": "^4.0.0", "react-native-vector-icons": "^4.0.0",
"react-router-native": "^4.0.0", "react-router-native": "^4.0.0",
"recompose": "^0.22.0", "recompose": "^0.23.4",
"rxjs": "^5.2.0" "rxjs": "^5.2.0"
}, },
"devDependencies": { "devDependencies": {

1465
yarn.lock

File diff suppressed because it is too large Load diff