Skip to content

Commit 3892d95

Browse files
authored
CloudBank react-native updates (#447)
* fix metro connect issue Signed-off-by: Mark Nelson <mark.x.nelson@oracle.com> * update deps Signed-off-by: Mark Nelson <mark.x.nelson@oracle.com>
1 parent 6379fb9 commit 3892d95

File tree

6 files changed

+25
-21
lines changed

6 files changed

+25
-21
lines changed

cloudbank/cloudbank-react-native/README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,17 @@ The CloudBank mobile app has the following features:
2222

2323
To use this sample you will require the following:
2424

25-
* Either Android Studio or XCode and a device emulator. For Android it must be Android version 11.0 Google APIs 30 (for compatibility with react-native tools)
25+
* Either Android Studio or XCode and a device emulator. For Android it must be Android version 11.0 Google APIs 30 (for compatibility with react-native tools) - see the [environment setup](https://reactnative.dev/docs/environment-setup) page for more details.
2626
* NodeJS, version 16.14.2 or later recommended, earlier versions *may* work but are not tested
2727
* The react-native tools, version 7.0.3 recommended, no other versions are tested
2828

2929

3030
## Building and running
3131

32-
To build the application, open it in Android Studio (or XCode) and use the IDE's build function to perform a full build. This is important so that 'linking' will be performed for React Native libraries.
32+
To build the application:
33+
34+
* Run `npm install` to download JavaScript dependencies.
35+
* Open it in Android Studio (or XCode) and use the IDE's build function to perform a full build. This is important so that 'linking' will be performed for React Native libraries. Note: You may need to run `gradle wrapper` in Android Studio to download the build tools.
3336

3437
To run the application:
3538

cloudbank/cloudbank-react-native/android/app/src/main/AndroidManifest.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
android:icon="@mipmap/ic_launcher"
1010
android:roundIcon="@mipmap/ic_launcher_round"
1111
android:allowBackup="false"
12-
android:theme="@style/AppTheme">
12+
android:theme="@style/AppTheme"
13+
android:usesCleartextTraffic="true">
1314
<activity
1415
android:name=".MainActivity"
1516
android:label="@string/app_name"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-all.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

cloudbank/cloudbank-react-native/android/gradlew

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/sh
22

33
#
4-
# Copyright © 2015-2021 the original authors.
4+
# Copyright © 2015-2021 the original authors.
55
#
66
# Licensed under the Apache License, Version 2.0 (the "License");
77
# you may not use this file except in compliance with the License.
@@ -32,10 +32,10 @@
3232
# Busybox and similar reduced shells will NOT work, because this script
3333
# requires all of these POSIX shell features:
3434
# * functions;
35-
# * expansions «$var», «${var}», «${var:-default}», «${var+SET}»,
36-
# «${var#prefix}», «${var%suffix}», and «$( cmd )»;
37-
# * compound commands having a testable exit status, especially «case»;
38-
# * various built-in commands including «command», «set», and «ulimit».
35+
# * expansions «$var», «${var}», «${var:-default}», «${var+SET}»,
36+
# «${var#prefix}», «${var%suffix}», and «$( cmd )»;
37+
# * compound commands having a testable exit status, especially «case»;
38+
# * various built-in commands including «command», «set», and «ulimit».
3939
#
4040
# Important for patching:
4141
#

cloudbank/cloudbank-react-native/components/Accounts/Accounts.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ const Accounts = props => {
103103
);
104104
})
105105
) : (
106-
<View style={styles.row}>
106+
<View style={styles.row} key="0">
107107
<View style={styles.cell}>
108108
<Text> </Text>
109109
<Text>No accounts to display</Text>

cloudbank/cloudbank-react-native/package.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,26 +12,26 @@
1212
},
1313
"dependencies": {
1414
"@parse/react-native": "^0.0.1-alpha.18",
15-
"@react-native-async-storage/async-storage": "^1.17.6",
15+
"@react-native-async-storage/async-storage": "^1.17.7",
1616
"@react-native-picker/picker": "^2.4.2",
1717
"@react-navigation/native": "^6.0.10",
1818
"@react-navigation/native-stack": "^6.6.2",
1919
"parse": "^3.4.2",
20-
"react": "17.0.2",
21-
"react-native": "0.68.2",
20+
"react": "18.2.0",
21+
"react-native": "0.69.1",
2222
"react-native-format-currency": "^0.0.1",
2323
"react-native-safe-area-context": "^4.3.1",
2424
"react-native-screens": "^3.13.1"
2525
},
2626
"devDependencies": {
27-
"@babel/core": "^7.12.9",
28-
"@babel/runtime": "^7.12.5",
29-
"@react-native-community/eslint-config": "^2.0.0",
30-
"babel-jest": "^26.6.3",
31-
"eslint": "^7.32.0",
32-
"jest": "^26.6.3",
33-
"metro-react-native-babel-preset": "^0.67.0",
34-
"react-test-renderer": "17.0.2"
27+
"@babel/core": "^7.18.6",
28+
"@babel/runtime": "^7.18.6",
29+
"@react-native-community/eslint-config": "^3.0.3",
30+
"babel-jest": "^28.1.2",
31+
"eslint": "^8.18.0",
32+
"jest": "^28.1.2",
33+
"metro-react-native-babel-preset": "^0.71.2",
34+
"react-test-renderer": "18.2.0"
3535
},
3636
"jest": {
3737
"preset": "react-native"

0 commit comments

Comments
 (0)