Skip to content

Commit

Permalink
Upgrade example-app to RN SDK beta.20 (#767)
Browse files Browse the repository at this point in the history
* Upgrade sdk to beta.20

* fix lint issue
  • Loading branch information
EricLin-BBpos authored Jul 29, 2024
1 parent 5f9a620 commit b2c6bdd
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 22 deletions.
26 changes: 13 additions & 13 deletions example-app/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,20 @@ PODS:
- ExpoModulesCore
- EXFont (11.10.3):
- ExpoModulesCore
- Expo (50.0.14):
- Expo (50.0.17):
- ExpoModulesCore
- ExpoFileSystem (16.0.8):
- ExpoFileSystem (16.0.9):
- ExpoModulesCore
- ExpoKeepAwake (12.8.2):
- ExpoModulesCore
- ExpoModulesCore (1.11.12):
- ExpoModulesCore (1.11.13):
- glog
- RCT-Folly (= 2022.05.16.00)
- React-Core
- React-NativeModulesApple
- React-RCTAppDelegate
- ReactCommon/turbomodule/core
- EXSplashScreen (0.26.4):
- EXSplashScreen (0.26.5):
- ExpoModulesCore
- glog
- RCT-Folly (= 2022.05.16.00)
Expand Down Expand Up @@ -1101,10 +1101,10 @@ PODS:
- RCT-Folly (= 2022.05.16.00)
- React-Core
- SocketRocket (0.6.1)
- stripe-terminal-react-native (0.0.1-beta.18):
- stripe-terminal-react-native (0.0.1-beta.20):
- React-Core
- StripeTerminal (~> 3.5.0)
- StripeTerminal (3.5.0)
- StripeTerminal (~> 3.7.0)
- StripeTerminal (3.7.0)
- Yoga (1.14.0)

DEPENDENCIES:
Expand Down Expand Up @@ -1319,11 +1319,11 @@ SPEC CHECKSUMS:
DoubleConversion: fea03f2699887d960129cc54bba7e52542b6f953
EXConstants: 988aa430ca0f76b43cd46b66e7fae3287f9cc2fc
EXFont: f20669cb266ef48b004f1eb1f2b20db96cd1df9f
Expo: e01a77c6fa4bc80a6d1bb949cda1d12d21044abd
ExpoFileSystem: eecaf6796aed0f4dd20042dc2ca2cac6c4bc1185
Expo: 2cdb5916749a1509cf88114f1f510bd458630eb4
ExpoFileSystem: 74cc0fae916f9f044248433971dcfc8c3befd057
ExpoKeepAwake: 0f5cad99603a3268e50af9a6eb8b76d0d9ac956c
ExpoModulesCore: 61dc57c6e2a35f2f84baf488146db624e03af4cd
EXSplashScreen: 5538a51beec451bf1fcf5198e3062790e2534df3
ExpoModulesCore: 4a8928a228569301ac4fc4a1e846713e05754d05
EXSplashScreen: fb4d80520d2348d57879e7a272415438bbcdffd3
FBLazyVector: f64d1e2ea739b4d8f7e4740cde18089cd97fe864
FBReactNativeSpec: 9f2b8b243131565335437dba74923a8d3015e780
fmt: ff9d55029c625d3757ed641535fd4a75fedc7ce9
Expand Down Expand Up @@ -1380,8 +1380,8 @@ SPEC CHECKSUMS:
RNReanimated: f6b02d8f5eaa2830296411d4ec3b8ef5442dd13d
RNScreens: 17e2f657f1b09a71ec3c821368a04acbb7ebcb46
SocketRocket: f32cd54efbe0f095c4d7594881e52619cfe80b17
stripe-terminal-react-native: d4d8536646e1d16ae8a906867e79107b02e8fc1f
StripeTerminal: 107cb1815738accbaa54179411cd916ed129b044
stripe-terminal-react-native: 6e3ce4e85e06c56002d72ab23e5a6486d2b9daf6
StripeTerminal: 7188b9f8bb3f3c9f0ad5f18217f26ccb07001988
Yoga: d17d2cc8105eed528474683b42e2ea310e1daf61

PODFILE CHECKSUM: 8c9f0bca78551a74dc0df7badf546b4cdf9eb304
Expand Down
2 changes: 1 addition & 1 deletion example-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"@react-native-picker/picker": "2.6.1",
"@react-navigation/native": "^5.x",
"@react-navigation/stack": "^5.x",
"@stripe/stripe-terminal-react-native": "^0.0.1-beta.18",
"@stripe/stripe-terminal-react-native": "^0.0.1-beta.20",
"@types/jest": "^29.2.1",
"expo": "~50.0.17",
"expo-splash-screen": "~0.26.5",
Expand Down
6 changes: 3 additions & 3 deletions example-app/src/screens/CollectCardPaymentScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -338,9 +338,9 @@ export default function CollectCardPaymentScreen() {
],
});

const { paymentIntent, error } = await confirmPaymentIntent(
collectedPaymentIntent
);
const { paymentIntent, error } = await confirmPaymentIntent({
paymentIntent: collectedPaymentIntent,
});

if (error) {
addLogs({
Expand Down
4 changes: 3 additions & 1 deletion example-app/src/screens/SetupIntentScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ export default function SetupIntentScreen() {
},
],
});
const { setupIntent, error } = await confirmSetupIntent(si);
const { setupIntent, error } = await confirmSetupIntent({
setupIntent: si,
});
if (error) {
addLogs({
name: 'Process Payment',
Expand Down
8 changes: 4 additions & 4 deletions example-app/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2477,10 +2477,10 @@
dependencies:
"@sinonjs/commons" "^3.0.0"

"@stripe/stripe-terminal-react-native@^0.0.1-beta.18":
version "0.0.1-beta.18"
resolved "https://registry.npmjs.org/@stripe/stripe-terminal-react-native/-/stripe-terminal-react-native-0.0.1-beta.18.tgz#894db100b6d16de90fb852382fe48c145114adfa"
integrity sha512-qSbpqHPYyA0WfDFE4+NIhqmET7to3P/A2R3yD2MCo4hmh+LBhE3m1WtXbSBicoSToQG3g+VFQMV5NKlTGahwdg==
"@stripe/stripe-terminal-react-native@^0.0.1-beta.20":
version "0.0.1-beta.20"
resolved "https://registry.npmjs.org/@stripe/stripe-terminal-react-native/-/stripe-terminal-react-native-0.0.1-beta.20.tgz#022b731ab6f88eeb155f6ebdc030525bae6d625c"
integrity sha512-Bda5wIQPrpuawK0qEMlsdOGcgZ042mUjDTPdhi449YNtLjpiUrL2J2XP5PiDOJE3mZ/dmXD82JZy20p6mw1H4w==
dependencies:
"@testing-library/react-native" "^12.4.0"
base-64 "^1.0.0"
Expand Down

0 comments on commit b2c6bdd

Please sign in to comment.