From f8d57d97c0357fc992fe14399e59982afe1607e7 Mon Sep 17 00:00:00 2001 From: susonthapa <33973551+susonthapa@users.noreply.github.com> Date: Sun, 8 Oct 2023 11:00:30 +0545 Subject: [PATCH 1/5] fixed the example app by upgrading RN and fixing some types --- apps/example/ios/Podfile.lock | 444 +++++++++++++++---------------- apps/example/package.json | 4 +- apps/example/src/screens/Map.tsx | 36 +-- yarn.lock | 339 ++++++++++++----------- 4 files changed, 423 insertions(+), 400 deletions(-) diff --git a/apps/example/ios/Podfile.lock b/apps/example/ios/Podfile.lock index 06a4a942..c1308195 100644 --- a/apps/example/ios/Podfile.lock +++ b/apps/example/ios/Podfile.lock @@ -2,14 +2,14 @@ PODS: - boost (1.76.0) - CocoaAsyncSocket (7.6.5) - DoubleConversion (1.1.6) - - FBLazyVector (0.71.8) - - FBReactNativeSpec (0.71.8): + - FBLazyVector (0.71.13) + - FBReactNativeSpec (0.71.13): - RCT-Folly (= 2021.07.22.00) - - RCTRequired (= 0.71.8) - - RCTTypeSafety (= 0.71.8) - - React-Core (= 0.71.8) - - React-jsi (= 0.71.8) - - ReactCommon/turbomodule/core (= 0.71.8) + - RCTRequired (= 0.71.13) + - RCTTypeSafety (= 0.71.13) + - React-Core (= 0.71.13) + - React-jsi (= 0.71.13) + - ReactCommon/turbomodule/core (= 0.71.13) - Flipper (0.125.0): - Flipper-Folly (~> 2.6) - Flipper-RSocket (~> 1.4) @@ -95,26 +95,26 @@ PODS: - fmt (~> 6.2.1) - glog - libevent - - RCTRequired (0.71.8) - - RCTTypeSafety (0.71.8): - - FBLazyVector (= 0.71.8) - - RCTRequired (= 0.71.8) - - React-Core (= 0.71.8) - - React (0.71.8): - - React-Core (= 0.71.8) - - React-Core/DevSupport (= 0.71.8) - - React-Core/RCTWebSocket (= 0.71.8) - - React-RCTActionSheet (= 0.71.8) - - React-RCTAnimation (= 0.71.8) - - React-RCTBlob (= 0.71.8) - - React-RCTImage (= 0.71.8) - - React-RCTLinking (= 0.71.8) - - React-RCTNetwork (= 0.71.8) - - React-RCTSettings (= 0.71.8) - - React-RCTText (= 0.71.8) - - React-RCTVibration (= 0.71.8) - - React-callinvoker (0.71.8) - - React-Codegen (0.71.8): + - RCTRequired (0.71.13) + - RCTTypeSafety (0.71.13): + - FBLazyVector (= 0.71.13) + - RCTRequired (= 0.71.13) + - React-Core (= 0.71.13) + - React (0.71.13): + - React-Core (= 0.71.13) + - React-Core/DevSupport (= 0.71.13) + - React-Core/RCTWebSocket (= 0.71.13) + - React-RCTActionSheet (= 0.71.13) + - React-RCTAnimation (= 0.71.13) + - React-RCTBlob (= 0.71.13) + - React-RCTImage (= 0.71.13) + - React-RCTLinking (= 0.71.13) + - React-RCTNetwork (= 0.71.13) + - React-RCTSettings (= 0.71.13) + - React-RCTText (= 0.71.13) + - React-RCTVibration (= 0.71.13) + - React-callinvoker (0.71.13) + - React-Codegen (0.71.13): - FBReactNativeSpec - hermes-engine - RCT-Folly @@ -125,209 +125,209 @@ PODS: - React-jsiexecutor - ReactCommon/turbomodule/bridging - ReactCommon/turbomodule/core - - React-Core (0.71.8): + - React-Core (0.71.13): - glog - hermes-engine - RCT-Folly (= 2021.07.22.00) - - React-Core/Default (= 0.71.8) - - React-cxxreact (= 0.71.8) + - React-Core/Default (= 0.71.13) + - React-cxxreact (= 0.71.13) - React-hermes - - React-jsi (= 0.71.8) - - React-jsiexecutor (= 0.71.8) - - React-perflogger (= 0.71.8) + - React-jsi (= 0.71.13) + - React-jsiexecutor (= 0.71.13) + - React-perflogger (= 0.71.13) - Yoga - - React-Core/CoreModulesHeaders (0.71.8): + - React-Core/CoreModulesHeaders (0.71.13): - glog - hermes-engine - RCT-Folly (= 2021.07.22.00) - React-Core/Default - - React-cxxreact (= 0.71.8) + - React-cxxreact (= 0.71.13) - React-hermes - - React-jsi (= 0.71.8) - - React-jsiexecutor (= 0.71.8) - - React-perflogger (= 0.71.8) + - React-jsi (= 0.71.13) + - React-jsiexecutor (= 0.71.13) + - React-perflogger (= 0.71.13) - Yoga - - React-Core/Default (0.71.8): + - React-Core/Default (0.71.13): - glog - hermes-engine - RCT-Folly (= 2021.07.22.00) - - React-cxxreact (= 0.71.8) + - React-cxxreact (= 0.71.13) - React-hermes - - React-jsi (= 0.71.8) - - React-jsiexecutor (= 0.71.8) - - React-perflogger (= 0.71.8) + - React-jsi (= 0.71.13) + - React-jsiexecutor (= 0.71.13) + - React-perflogger (= 0.71.13) - Yoga - - React-Core/DevSupport (0.71.8): + - React-Core/DevSupport (0.71.13): - glog - hermes-engine - RCT-Folly (= 2021.07.22.00) - - React-Core/Default (= 0.71.8) - - React-Core/RCTWebSocket (= 0.71.8) - - React-cxxreact (= 0.71.8) + - React-Core/Default (= 0.71.13) + - React-Core/RCTWebSocket (= 0.71.13) + - React-cxxreact (= 0.71.13) - React-hermes - - React-jsi (= 0.71.8) - - React-jsiexecutor (= 0.71.8) - - React-jsinspector (= 0.71.8) - - React-perflogger (= 0.71.8) + - React-jsi (= 0.71.13) + - React-jsiexecutor (= 0.71.13) + - React-jsinspector (= 0.71.13) + - React-perflogger (= 0.71.13) - Yoga - - React-Core/RCTActionSheetHeaders (0.71.8): + - React-Core/RCTActionSheetHeaders (0.71.13): - glog - hermes-engine - RCT-Folly (= 2021.07.22.00) - React-Core/Default - - React-cxxreact (= 0.71.8) + - React-cxxreact (= 0.71.13) - React-hermes - - React-jsi (= 0.71.8) - - React-jsiexecutor (= 0.71.8) - - React-perflogger (= 0.71.8) + - React-jsi (= 0.71.13) + - React-jsiexecutor (= 0.71.13) + - React-perflogger (= 0.71.13) - Yoga - - React-Core/RCTAnimationHeaders (0.71.8): + - React-Core/RCTAnimationHeaders (0.71.13): - glog - hermes-engine - RCT-Folly (= 2021.07.22.00) - React-Core/Default - - React-cxxreact (= 0.71.8) + - React-cxxreact (= 0.71.13) - React-hermes - - React-jsi (= 0.71.8) - - React-jsiexecutor (= 0.71.8) - - React-perflogger (= 0.71.8) + - React-jsi (= 0.71.13) + - React-jsiexecutor (= 0.71.13) + - React-perflogger (= 0.71.13) - Yoga - - React-Core/RCTBlobHeaders (0.71.8): + - React-Core/RCTBlobHeaders (0.71.13): - glog - hermes-engine - RCT-Folly (= 2021.07.22.00) - React-Core/Default - - React-cxxreact (= 0.71.8) + - React-cxxreact (= 0.71.13) - React-hermes - - React-jsi (= 0.71.8) - - React-jsiexecutor (= 0.71.8) - - React-perflogger (= 0.71.8) + - React-jsi (= 0.71.13) + - React-jsiexecutor (= 0.71.13) + - React-perflogger (= 0.71.13) - Yoga - - React-Core/RCTImageHeaders (0.71.8): + - React-Core/RCTImageHeaders (0.71.13): - glog - hermes-engine - RCT-Folly (= 2021.07.22.00) - React-Core/Default - - React-cxxreact (= 0.71.8) + - React-cxxreact (= 0.71.13) - React-hermes - - React-jsi (= 0.71.8) - - React-jsiexecutor (= 0.71.8) - - React-perflogger (= 0.71.8) + - React-jsi (= 0.71.13) + - React-jsiexecutor (= 0.71.13) + - React-perflogger (= 0.71.13) - Yoga - - React-Core/RCTLinkingHeaders (0.71.8): + - React-Core/RCTLinkingHeaders (0.71.13): - glog - hermes-engine - RCT-Folly (= 2021.07.22.00) - React-Core/Default - - React-cxxreact (= 0.71.8) + - React-cxxreact (= 0.71.13) - React-hermes - - React-jsi (= 0.71.8) - - React-jsiexecutor (= 0.71.8) - - React-perflogger (= 0.71.8) + - React-jsi (= 0.71.13) + - React-jsiexecutor (= 0.71.13) + - React-perflogger (= 0.71.13) - Yoga - - React-Core/RCTNetworkHeaders (0.71.8): + - React-Core/RCTNetworkHeaders (0.71.13): - glog - hermes-engine - RCT-Folly (= 2021.07.22.00) - React-Core/Default - - React-cxxreact (= 0.71.8) + - React-cxxreact (= 0.71.13) - React-hermes - - React-jsi (= 0.71.8) - - React-jsiexecutor (= 0.71.8) - - React-perflogger (= 0.71.8) + - React-jsi (= 0.71.13) + - React-jsiexecutor (= 0.71.13) + - React-perflogger (= 0.71.13) - Yoga - - React-Core/RCTSettingsHeaders (0.71.8): + - React-Core/RCTSettingsHeaders (0.71.13): - glog - hermes-engine - RCT-Folly (= 2021.07.22.00) - React-Core/Default - - React-cxxreact (= 0.71.8) + - React-cxxreact (= 0.71.13) - React-hermes - - React-jsi (= 0.71.8) - - React-jsiexecutor (= 0.71.8) - - React-perflogger (= 0.71.8) + - React-jsi (= 0.71.13) + - React-jsiexecutor (= 0.71.13) + - React-perflogger (= 0.71.13) - Yoga - - React-Core/RCTTextHeaders (0.71.8): + - React-Core/RCTTextHeaders (0.71.13): - glog - hermes-engine - RCT-Folly (= 2021.07.22.00) - React-Core/Default - - React-cxxreact (= 0.71.8) + - React-cxxreact (= 0.71.13) - React-hermes - - React-jsi (= 0.71.8) - - React-jsiexecutor (= 0.71.8) - - React-perflogger (= 0.71.8) + - React-jsi (= 0.71.13) + - React-jsiexecutor (= 0.71.13) + - React-perflogger (= 0.71.13) - Yoga - - React-Core/RCTVibrationHeaders (0.71.8): + - React-Core/RCTVibrationHeaders (0.71.13): - glog - hermes-engine - RCT-Folly (= 2021.07.22.00) - React-Core/Default - - React-cxxreact (= 0.71.8) + - React-cxxreact (= 0.71.13) - React-hermes - - React-jsi (= 0.71.8) - - React-jsiexecutor (= 0.71.8) - - React-perflogger (= 0.71.8) + - React-jsi (= 0.71.13) + - React-jsiexecutor (= 0.71.13) + - React-perflogger (= 0.71.13) - Yoga - - React-Core/RCTWebSocket (0.71.8): + - React-Core/RCTWebSocket (0.71.13): - glog - hermes-engine - RCT-Folly (= 2021.07.22.00) - - React-Core/Default (= 0.71.8) - - React-cxxreact (= 0.71.8) + - React-Core/Default (= 0.71.13) + - React-cxxreact (= 0.71.13) - React-hermes - - React-jsi (= 0.71.8) - - React-jsiexecutor (= 0.71.8) - - React-perflogger (= 0.71.8) + - React-jsi (= 0.71.13) + - React-jsiexecutor (= 0.71.13) + - React-perflogger (= 0.71.13) - Yoga - - React-CoreModules (0.71.8): + - React-CoreModules (0.71.13): - RCT-Folly (= 2021.07.22.00) - - RCTTypeSafety (= 0.71.8) - - React-Codegen (= 0.71.8) - - React-Core/CoreModulesHeaders (= 0.71.8) - - React-jsi (= 0.71.8) + - RCTTypeSafety (= 0.71.13) + - React-Codegen (= 0.71.13) + - React-Core/CoreModulesHeaders (= 0.71.13) + - React-jsi (= 0.71.13) - React-RCTBlob - - React-RCTImage (= 0.71.8) - - ReactCommon/turbomodule/core (= 0.71.8) - - React-cxxreact (0.71.8): + - React-RCTImage (= 0.71.13) + - ReactCommon/turbomodule/core (= 0.71.13) + - React-cxxreact (0.71.13): - boost (= 1.76.0) - DoubleConversion - glog - hermes-engine - RCT-Folly (= 2021.07.22.00) - - React-callinvoker (= 0.71.8) - - React-jsi (= 0.71.8) - - React-jsinspector (= 0.71.8) - - React-logger (= 0.71.8) - - React-perflogger (= 0.71.8) - - React-runtimeexecutor (= 0.71.8) - - React-hermes (0.71.8): + - React-callinvoker (= 0.71.13) + - React-jsi (= 0.71.13) + - React-jsinspector (= 0.71.13) + - React-logger (= 0.71.13) + - React-perflogger (= 0.71.13) + - React-runtimeexecutor (= 0.71.13) + - React-hermes (0.71.13): - DoubleConversion - glog - hermes-engine - RCT-Folly (= 2021.07.22.00) - RCT-Folly/Futures (= 2021.07.22.00) - - React-cxxreact (= 0.71.8) + - React-cxxreact (= 0.71.13) - React-jsi - - React-jsiexecutor (= 0.71.8) - - React-jsinspector (= 0.71.8) - - React-perflogger (= 0.71.8) - - React-jsi (0.71.8): + - React-jsiexecutor (= 0.71.13) + - React-jsinspector (= 0.71.13) + - React-perflogger (= 0.71.13) + - React-jsi (0.71.13): - boost (= 1.76.0) - DoubleConversion - glog - hermes-engine - RCT-Folly (= 2021.07.22.00) - - React-jsiexecutor (0.71.8): + - React-jsiexecutor (0.71.13): - DoubleConversion - glog - hermes-engine - RCT-Folly (= 2021.07.22.00) - - React-cxxreact (= 0.71.8) - - React-jsi (= 0.71.8) - - React-perflogger (= 0.71.8) - - React-jsinspector (0.71.8) - - React-logger (0.71.8): + - React-cxxreact (= 0.71.13) + - React-jsi (= 0.71.13) + - React-perflogger (= 0.71.13) + - React-jsinspector (0.71.13) + - React-logger (0.71.13): - glog - react-native-carplay (2.3.0): - React @@ -337,90 +337,90 @@ PODS: - RCTTypeSafety - React-Core - ReactCommon/turbomodule/core - - React-perflogger (0.71.8) - - React-RCTActionSheet (0.71.8): - - React-Core/RCTActionSheetHeaders (= 0.71.8) - - React-RCTAnimation (0.71.8): + - React-perflogger (0.71.13) + - React-RCTActionSheet (0.71.13): + - React-Core/RCTActionSheetHeaders (= 0.71.13) + - React-RCTAnimation (0.71.13): - RCT-Folly (= 2021.07.22.00) - - RCTTypeSafety (= 0.71.8) - - React-Codegen (= 0.71.8) - - React-Core/RCTAnimationHeaders (= 0.71.8) - - React-jsi (= 0.71.8) - - ReactCommon/turbomodule/core (= 0.71.8) - - React-RCTAppDelegate (0.71.8): + - RCTTypeSafety (= 0.71.13) + - React-Codegen (= 0.71.13) + - React-Core/RCTAnimationHeaders (= 0.71.13) + - React-jsi (= 0.71.13) + - ReactCommon/turbomodule/core (= 0.71.13) + - React-RCTAppDelegate (0.71.13): - RCT-Folly - RCTRequired - RCTTypeSafety - React-Core - ReactCommon/turbomodule/core - - React-RCTBlob (0.71.8): + - React-RCTBlob (0.71.13): - hermes-engine - RCT-Folly (= 2021.07.22.00) - - React-Codegen (= 0.71.8) - - React-Core/RCTBlobHeaders (= 0.71.8) - - React-Core/RCTWebSocket (= 0.71.8) - - React-jsi (= 0.71.8) - - React-RCTNetwork (= 0.71.8) - - ReactCommon/turbomodule/core (= 0.71.8) - - React-RCTImage (0.71.8): + - React-Codegen (= 0.71.13) + - React-Core/RCTBlobHeaders (= 0.71.13) + - React-Core/RCTWebSocket (= 0.71.13) + - React-jsi (= 0.71.13) + - React-RCTNetwork (= 0.71.13) + - ReactCommon/turbomodule/core (= 0.71.13) + - React-RCTImage (0.71.13): - RCT-Folly (= 2021.07.22.00) - - RCTTypeSafety (= 0.71.8) - - React-Codegen (= 0.71.8) - - React-Core/RCTImageHeaders (= 0.71.8) - - React-jsi (= 0.71.8) - - React-RCTNetwork (= 0.71.8) - - ReactCommon/turbomodule/core (= 0.71.8) - - React-RCTLinking (0.71.8): - - React-Codegen (= 0.71.8) - - React-Core/RCTLinkingHeaders (= 0.71.8) - - React-jsi (= 0.71.8) - - ReactCommon/turbomodule/core (= 0.71.8) - - React-RCTNetwork (0.71.8): + - RCTTypeSafety (= 0.71.13) + - React-Codegen (= 0.71.13) + - React-Core/RCTImageHeaders (= 0.71.13) + - React-jsi (= 0.71.13) + - React-RCTNetwork (= 0.71.13) + - ReactCommon/turbomodule/core (= 0.71.13) + - React-RCTLinking (0.71.13): + - React-Codegen (= 0.71.13) + - React-Core/RCTLinkingHeaders (= 0.71.13) + - React-jsi (= 0.71.13) + - ReactCommon/turbomodule/core (= 0.71.13) + - React-RCTNetwork (0.71.13): - RCT-Folly (= 2021.07.22.00) - - RCTTypeSafety (= 0.71.8) - - React-Codegen (= 0.71.8) - - React-Core/RCTNetworkHeaders (= 0.71.8) - - React-jsi (= 0.71.8) - - ReactCommon/turbomodule/core (= 0.71.8) - - React-RCTSettings (0.71.8): + - RCTTypeSafety (= 0.71.13) + - React-Codegen (= 0.71.13) + - React-Core/RCTNetworkHeaders (= 0.71.13) + - React-jsi (= 0.71.13) + - ReactCommon/turbomodule/core (= 0.71.13) + - React-RCTSettings (0.71.13): - RCT-Folly (= 2021.07.22.00) - - RCTTypeSafety (= 0.71.8) - - React-Codegen (= 0.71.8) - - React-Core/RCTSettingsHeaders (= 0.71.8) - - React-jsi (= 0.71.8) - - ReactCommon/turbomodule/core (= 0.71.8) - - React-RCTText (0.71.8): - - React-Core/RCTTextHeaders (= 0.71.8) - - React-RCTVibration (0.71.8): + - RCTTypeSafety (= 0.71.13) + - React-Codegen (= 0.71.13) + - React-Core/RCTSettingsHeaders (= 0.71.13) + - React-jsi (= 0.71.13) + - ReactCommon/turbomodule/core (= 0.71.13) + - React-RCTText (0.71.13): + - React-Core/RCTTextHeaders (= 0.71.13) + - React-RCTVibration (0.71.13): - RCT-Folly (= 2021.07.22.00) - - React-Codegen (= 0.71.8) - - React-Core/RCTVibrationHeaders (= 0.71.8) - - React-jsi (= 0.71.8) - - ReactCommon/turbomodule/core (= 0.71.8) - - React-runtimeexecutor (0.71.8): - - React-jsi (= 0.71.8) - - ReactCommon/turbomodule/bridging (0.71.8): + - React-Codegen (= 0.71.13) + - React-Core/RCTVibrationHeaders (= 0.71.13) + - React-jsi (= 0.71.13) + - ReactCommon/turbomodule/core (= 0.71.13) + - React-runtimeexecutor (0.71.13): + - React-jsi (= 0.71.13) + - ReactCommon/turbomodule/bridging (0.71.13): - DoubleConversion - glog - hermes-engine - RCT-Folly (= 2021.07.22.00) - - React-callinvoker (= 0.71.8) - - React-Core (= 0.71.8) - - React-cxxreact (= 0.71.8) - - React-jsi (= 0.71.8) - - React-logger (= 0.71.8) - - React-perflogger (= 0.71.8) - - ReactCommon/turbomodule/core (0.71.8): + - React-callinvoker (= 0.71.13) + - React-Core (= 0.71.13) + - React-cxxreact (= 0.71.13) + - React-jsi (= 0.71.13) + - React-logger (= 0.71.13) + - React-perflogger (= 0.71.13) + - ReactCommon/turbomodule/core (0.71.13): - DoubleConversion - glog - hermes-engine - RCT-Folly (= 2021.07.22.00) - - React-callinvoker (= 0.71.8) - - React-Core (= 0.71.8) - - React-cxxreact (= 0.71.8) - - React-jsi (= 0.71.8) - - React-logger (= 0.71.8) - - React-perflogger (= 0.71.8) + - React-callinvoker (= 0.71.13) + - React-Core (= 0.71.13) + - React-cxxreact (= 0.71.13) + - React-jsi (= 0.71.13) + - React-logger (= 0.71.13) + - React-perflogger (= 0.71.13) - RNGestureHandler (2.10.1): - React-Core - RNScreens (3.20.0): @@ -596,8 +596,8 @@ SPEC CHECKSUMS: boost: 57d2868c099736d80fcd648bf211b4431e51a558 CocoaAsyncSocket: 065fd1e645c7abab64f7a6a2007a48038fdc6a99 DoubleConversion: 5189b271737e1565bdce30deb4a08d647e3f5f54 - FBLazyVector: f637f31eacba90d4fdeff3fa41608b8f361c173b - FBReactNativeSpec: a6579be70007142c7cd0f4e77aae078287baf889 + FBLazyVector: 24e08bf294faea0abc0278abb2fcad7f3e446f6f + FBReactNativeSpec: 6592557c715274d0f250f8f957db541ed41917b1 Flipper: 26fc4b7382499f1281eb8cb921e5c3ad6de91fe0 Flipper-Boost-iOSX: fd1e2b8cbef7e662a122412d7ac5f5bea715403c Flipper-DoubleConversion: 2dc99b02f658daf147069aad9dbd29d8feb06d30 @@ -613,40 +613,40 @@ SPEC CHECKSUMS: libevent: 4049cae6c81cdb3654a443be001fb9bdceff7913 OpenSSL-Universal: ebc357f1e6bc71fa463ccb2fe676756aff50e88c RCT-Folly: 424b8c9a7a0b9ab2886ffe9c3b041ef628fd4fb1 - RCTRequired: 8af6a32dfc2b65ec82193c2dee6e1011ff22ac2a - RCTTypeSafety: bee9dd161c175896c680d47ef1d9eaacf2b587f4 - React: d850475db9ba8006a8b875d79e1e0d6ac8a0f8b6 - React-callinvoker: 6a0c75475ddc17c9ed54e4ff0478074a18fd7ab5 - React-Codegen: 786571642e87add634e7f4d299c85314ec6cc158 - React-Core: 1adfab153f59e4f56e09b97a153089f466d7b8aa - React-CoreModules: 958d236715415d4ccdd5fa35c516cf0356637393 - React-cxxreact: 2e7a6283807ce8755c3d501735acd400bec3b5cd - React-hermes: 8102c3112ba32207c3052619be8cfae14bf99d84 - React-jsi: dd29264f041a587e91f994e4be97e86c127742b2 - React-jsiexecutor: 747911ab5921641b4ed7e4900065896597142125 - React-jsinspector: c712f9e3bb9ba4122d6b82b4f906448b8a281580 - React-logger: 342f358b8decfbf8f272367f4eacf4b6154061be + RCTRequired: c20235648eeb64a874f55459ceae6b081956318d + RCTTypeSafety: ca004f1fe0b76f7936f7fe7dfd761a4386cf72f5 + React: b27df2b1da30335cf1bf1909056c4e1c3a3603ae + React-callinvoker: f2a69510d781d8226d51342a3cbe8a9b13573ea5 + React-Codegen: 90eb4e8352b823234ee25adbe64233b2fc642aee + React-Core: 0771d135beb41b14e0e2ee9238fda50df6f18b97 + React-CoreModules: 0e081b26ab034992d6a60217fc35a83e8ad9b8ed + React-cxxreact: 3ec43be907f4d818c5113e436d661836d1ab5aa9 + React-hermes: 870871faa5b35c8163361e22241360de26afe07d + React-jsi: c06ec745faeea7bb8845a9b906aefa7c049c86cb + React-jsiexecutor: a2867f1f81301b1f56ad968632b6ebc45c64a530 + React-jsinspector: 7e58fe86c7cc442fd11da0c9d8bef12a8d63f771 + React-logger: a3f6ca0d018749852a2a6f07c154bfc6fcd4195a react-native-carplay: c0327ae947e4a12c7d66315d54254fdf87a982ec react-native-safe-area-context: b8979f5eda6ed5903d4dbc885be3846ea3daa753 - React-perflogger: d21f182895de9d1b077f8a3cd00011095c8c9100 - React-RCTActionSheet: 0151f83ef92d2a7139bba7dfdbc8066632a6d47b - React-RCTAnimation: 5ec9c0705bb2297549c120fe6473aa3e4a01e215 - React-RCTAppDelegate: 9895fd1b6d1176d88c4b10ddc169b2e1300c91f0 - React-RCTBlob: f3634eb45b6e7480037655e1ca93d1136ac984dd - React-RCTImage: 3c12cb32dec49549ae62ed6cba4018db43841ffc - React-RCTLinking: 310e930ee335ef25481b4a173d9edb64b77895f9 - React-RCTNetwork: b6837841fe88303b0c04c1e3c01992b30f1f5498 - React-RCTSettings: 600d91fe25fa7c16b0ff891304082440f2904b89 - React-RCTText: a0a19f749088280c6def5397ed6211b811e7eef3 - React-RCTVibration: 43ffd976a25f6057a7cf95ea3648ba4e00287f89 - React-runtimeexecutor: 7c51ae9d4b3e9608a2366e39ccaa606aa551b9ed - ReactCommon: 85c98ab0a509e70bf5ee5d9715cf68dbf495b84c + React-perflogger: 431a655960a02f01257d631b2a9bfbb02fd21064 + React-RCTActionSheet: 38c8d496d0faa63013d16f709e10a3acf6b5f100 + React-RCTAnimation: 6da4d599f3262ed8021433ddd96de45ac9e731b1 + React-RCTAppDelegate: 66498edcd8ba93f0bd727304be671f9f3ddf0a23 + React-RCTBlob: d8f7bf9f32fbde84565a81f4bdf34398f46d45dd + React-RCTImage: 4e31e6ebf2b9705831d1855425a043b40eec1f61 + React-RCTLinking: 22ac16d44e2df03e9ca9125273fc58a7c507f529 + React-RCTNetwork: 4bacd206834633c23475485dbc21c18563627af4 + React-RCTSettings: 4e4ace986ae92a7e1696fdac11615576b698f337 + React-RCTText: 37a1341bdf1f80e9909f6b69a7a9ee747cb682d3 + React-RCTVibration: 2271362cdf9ff2dae6a2156f5101e5c30b02694d + React-runtimeexecutor: 35cec6420c9d4144b0d06f9fdb093cf8f02bd52c + ReactCommon: fc9d1da17fa902910dcba550a54c16e7e1c70d2c RNGestureHandler: 42ec7c28dd02d540ed6c9159c57a98ff016492dc RNScreens: 218801c16a2782546d30bd2026bb625c0302d70f SocketRocket: fccef3f9c5cedea1353a9ef6ada904fde10d6608 - Yoga: 065f0b74dba4832d6e328238de46eb72c5de9556 + Yoga: 135109c9b8c5d1a8af3a58d21cd4c7aa7f3bf555 YogaKit: f782866e155069a2cca2517aafea43200b01fd5a PODFILE CHECKSUM: 43e7fb543401ed760473db1db278bb0e99013d1c -COCOAPODS: 1.10.1 +COCOAPODS: 1.13.0 diff --git a/apps/example/package.json b/apps/example/package.json index 59906453..e94a418e 100644 --- a/apps/example/package.json +++ b/apps/example/package.json @@ -13,7 +13,7 @@ "@react-navigation/native": "^6.1.6", "@react-navigation/stack": "^6.3.16", "react": "18.2.0", - "react-native": "0.71.8", + "react-native": "0.71.13", "react-native-carplay": "workspace:*", "react-native-gesture-handler": "^2.10.1", "react-native-safe-area-context": "^4.5.3", @@ -31,7 +31,7 @@ "babel-jest": "^29.2.1", "eslint": "^8.19.0", "jest": "^29.2.1", - "metro-react-native-babel-preset": "0.73.9", + "metro-react-native-babel-preset": "0.73.10", "prettier": "2.6.2", "react-test-renderer": "18.2.0", "typescript": "4.8.4" diff --git a/apps/example/src/screens/Map.tsx b/apps/example/src/screens/Map.tsx index 00dbc00b..f3d959d8 100644 --- a/apps/example/src/screens/Map.tsx +++ b/apps/example/src/screens/Map.tsx @@ -6,11 +6,11 @@ import { Trip, NavigationSession, MapTemplateConfig, - Maneuver, - PauseReason, - TimeRemainingColor, - TravelEstimates, } from 'react-native-carplay'; +import { Maneuver } from 'react-native-carplay/src/interfaces/Maneuver'; +import { PauseReason } from 'react-native-carplay/src/interfaces/PauseReason'; +import { TimeRemainingColor } from 'react-native-carplay/src/interfaces/TimeRemainingColor'; +import { TravelEstimates } from 'react-native-carplay/src/interfaces/TravelEstimates'; function MapView() { return ( @@ -95,13 +95,13 @@ function getRandomManeuver(): Maneuver { return { ...maneuvers[randomIndex] }; } -export function Map({ navigation }) { - const [navigationSession, setNavigationSession] = useState(null); +export function Map() { + const [navigationSession, setNavigationSession] = useState(null); const mapTemplate = useRef(); const onShowAlertPress = () => { - mapTemplate.current.presentNavigationAlert({ + mapTemplate.current?.presentNavigationAlert({ titleVariants: ['Test 1'], primaryAction: { title: 'Test 2' }, secondaryAction: { title: 'Test 3' }, @@ -110,35 +110,35 @@ export function Map({ navigation }) { }; const onDismissAlertPress = () => { - mapTemplate.current.dismissNavigationAlert(true); + mapTemplate.current?.dismissNavigationAlert(true); }; const onShowPanningPress = () => { - mapTemplate.current.showPanningInterface(true); + mapTemplate.current?.showPanningInterface(true); }; const onDismissPanningPress = () => { - mapTemplate.current.dismissPanningInterface(true); + mapTemplate.current?.dismissPanningInterface(true); }; const onShowRouteChoicesPreviewPress = () => { - mapTemplate.current.showRouteChoicesPreviewForTrip(trip); + mapTemplate.current?.showRouteChoicesPreviewForTrip(trip); }; const onDismissRouteChoicesPreviewPress = () => { - mapTemplate.current.hideTripPreviews(); + mapTemplate.current?.hideTripPreviews(); }; const onStartNavigation = async () => { - mapTemplate.current.hideTripPreviews(); - const newNavigationSession = await mapTemplate.current.startNavigationSession(trip); - newNavigationSession.updateManeuvers([getRandomManeuver()]); - mapTemplate.current.updateTravelEstimates( + mapTemplate.current?.hideTripPreviews(); + const newNavigationSession = await mapTemplate.current?.startNavigationSession(trip); + newNavigationSession?.updateManeuvers([getRandomManeuver()]); + mapTemplate.current?.updateTravelEstimates( trip, getTravelEstimates(), Math.floor(Math.random() * 4) as TimeRemainingColor, ); - setNavigationSession(newNavigationSession); + setNavigationSession(newNavigationSession ?? null); }; useEffect(() => { @@ -210,7 +210,7 @@ export function Map({ navigation }) {