Skip to content

Commit

Permalink
chore: upgrade example to react-native 0.65.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jamsch committed Oct 2, 2021
1 parent ca2c8a9 commit b2c98d9
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 22 deletions.
2 changes: 2 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,5 @@ end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
max_line_length = 120
quote_type = double
2 changes: 1 addition & 1 deletion example/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ dependencies {
// Run this once to be able to run the application with BUCK
// puts all compile dependencies into folder libs for BUCK to use
task copyDownloadableDepsToLibs(type: Copy) {
from configurations.compile
from configurations.implementation
into 'libs'
}

Expand Down
4 changes: 2 additions & 2 deletions example/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ buildscript {
}
repositories {
google()
jcenter()
mavenCentral()
}
dependencies {
classpath('com.android.tools.build:gradle:4.2.1')
Expand All @@ -21,6 +21,7 @@ buildscript {

allprojects {
repositories {
mavenCentral()
mavenLocal()
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
Expand All @@ -32,7 +33,6 @@ allprojects {
}

google()
jcenter()
maven { url 'https://www.jitpack.io' }
}
}
2 changes: 1 addition & 1 deletion example/ios/Podfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require_relative '../node_modules/react-native/scripts/react_native_pods'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'

platform :ios, '10.0'
platform :ios, '11.0'

target 'DuoDragDropExample' do
config = use_native_modules!
Expand Down
12 changes: 6 additions & 6 deletions example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,20 @@
"version": "0.0.1",
"private": true,
"scripts": {
"android": "react-native run-android",
"android": "react-native run-android -- --deviceId emulator-5556",
"ios": "react-native run-ios",
"start": "react-native start"
},
"dependencies": {
"react": "^17.0.2",
"react-native": "0.64.2",
"react-native-reanimated": "^2.2.1",
"react-native": "0.65.1",
"react-native-reanimated": "^2.2.2",
"react-native-gesture-handler": "^1.10.3"
},
"devDependencies": {
"@babel/core": "^7.12.10",
"@babel/core": "^7.15.5",
"@babel/runtime": "^7.15.4",
"babel-plugin-module-resolver": "^4.0.0",
"metro-react-native-babel-preset": "^0.64.0"
"babel-plugin-module-resolver": "^4.1.0",
"metro-react-native-babel-preset": "^0.66.2"
}
}
27 changes: 15 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,23 +51,23 @@
"react-native-redash": "16.2.2"
},
"devDependencies": {
"@commitlint/config-conventional": "^13.1.0",
"@commitlint/config-conventional": "^13.2.0",
"@react-native-community/eslint-config": "^3.0.1",
"@release-it/conventional-changelog": "^3.3.0",
"@types/jest": "^27.0.2",
"@types/react": "^17.0.24",
"@types/react-native": "0.65.1",
"commitlint": "^13.1.0",
"@types/react": "^17.0.26",
"@types/react-native": "0.65.2",
"commitlint": "^13.2.0",
"eslint": "^7.32.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^4.0.0",
"husky": "^7.0.2",
"jest": "^27.2.1",
"jest": "^27.2.4",
"pod-install": "^0.1.27",
"prettier": "^2.4.1",
"react": "17.0.2",
"react-native": "0.64.2",
"react-native-builder-bob": "^0.18.1",
"react-native": "0.65.1",
"react-native-builder-bob": "^0.18.2",
"release-it": "^14.11.6",
"react-native-reanimated": "^2.2.2",
"react-native-gesture-handler": "^1.10.3",
Expand Down Expand Up @@ -121,13 +121,15 @@
"prettier"
],
"rules": {
"no-shadow": "off",
"prettier/prettier": [
"error",
{
"quoteProps": "consistent",
"singleQuote": true,
"singleQuote": false,
"tabWidth": 2,
"trailingComma": "es5",
"printWidth": 120,
"trailingComma": "all",
"useTabs": false
}
]
Expand All @@ -139,10 +141,11 @@
],
"prettier": {
"quoteProps": "consistent",
"singleQuote": true,
"singleQuote": false,
"tabWidth": 2,
"trailingComma": "es5",
"useTabs": false
"trailingComma": "all",
"useTabs": false,
"printWidth": 120
},
"react-native-builder-bob": {
"source": "src",
Expand Down

0 comments on commit b2c98d9

Please sign in to comment.