From 121c4b51971c39452dcb0db7d002cf0455bd66fa Mon Sep 17 00:00:00 2001 From: Billy Jacoby Date: Sun, 24 Sep 2023 21:01:02 -0400 Subject: [PATCH 1/2] chore: adjust lib versions --- .vscode/settings.json | 1 + ios/Podfile.lock | 16 ++++------------ package.json | 2 +- yarn.lock | 30 ++++++++++++++++++++++-------- 4 files changed, 28 insertions(+), 21 deletions(-) create mode 100644 .vscode/settings.json diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..d4602f4 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1 @@ +{"tailwindCSS.classAttributes": ["className", "tw", "addtlClasses"]} diff --git a/ios/Podfile.lock b/ios/Podfile.lock index e311660..04efaf5 100644 --- a/ios/Podfile.lock +++ b/ios/Podfile.lock @@ -79,9 +79,6 @@ PODS: - MMKVCore (~> 1.3.1) - MMKVCore (1.3.1) - OpenSSL-Universal (1.1.1100) - - PromisesObjC (2.3.1) - - PromisesSwift (2.3.1): - - PromisesObjC (= 2.3.1) - RCT-Folly (2021.07.22.00): - boost - DoubleConversion @@ -387,11 +384,10 @@ PODS: - React-Core - react-native-safe-area-context (4.7.1): - React-Core - - react-native-video (6.0.0-alpha.8): + - react-native-video (5.2.1): - React-Core - - react-native-video/Video (= 6.0.0-alpha.8) - - react-native-video/Video (6.0.0-alpha.8): - - PromisesSwift + - react-native-video/Video (= 5.2.1) + - react-native-video/Video (5.2.1): - React-Core - react-native-webrtc (111.0.3): - JitsiWebRTC (~> 111.0.0) @@ -637,8 +633,6 @@ SPEC REPOS: - MMKV - MMKVCore - OpenSSL-Universal - - PromisesObjC - - PromisesSwift - SocketRocket - YogaKit @@ -761,8 +755,6 @@ SPEC CHECKSUMS: MMKV: 5a07930c70c70b86cd87761a42c8f3836fb681d7 MMKVCore: e50135dbd33235b6ab390635991bab437ab873c0 OpenSSL-Universal: ebc357f1e6bc71fa463ccb2fe676756aff50e88c - PromisesObjC: c50d2056b5253dadbd6c2bea79b0674bd5a52fa4 - PromisesSwift: 28dca69a9c40779916ac2d6985a0192a5cb4a265 RCT-Folly: 424b8c9a7a0b9ab2886ffe9c3b041ef628fd4fb1 RCTRequired: c0569ecc035894e4a68baecb30fe6a7ea6e399f9 RCTTypeSafety: e90354072c21236e0bcf1699011e39acd25fea2f @@ -780,7 +772,7 @@ SPEC CHECKSUMS: React-logger: da1ebe05ae06eb6db4b162202faeafac4b435e77 react-native-mmkv: 9ae7ca3977e8ef48dbf7f066974eb844c20b5fd7 react-native-safe-area-context: 9697629f7b2cda43cf52169bb7e0767d330648c2 - react-native-video: 86950ad481cec184d7c9420ec3bca0c27904bbcd + react-native-video: c26780b224543c62d5e1b2a7244a5cd1b50e8253 react-native-webrtc: 4d1669c2ed29767fe70b0169428b4466589ecf8b React-NativeModulesApple: edb5ace14f73f4969df6e7b1f3e41bef0012740f React-perflogger: 496a1a3dc6737f964107cb3ddae7f9e265ddda58 diff --git a/package.json b/package.json index 5e8f5b1..ff2e077 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,7 @@ "react-native-safe-area-context": "^4.7.1", "react-native-screens": "^3.24.0", "react-native-svg": "^13.13.0", - "react-native-video": "alpha", + "react-native-video": "latest", "react-native-webrtc": "^111.0.3", "react-query": "^3.39.3", "superjson": "^1.13.1", diff --git a/yarn.lock b/yarn.lock index 5a75ddb..d13b199 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4015,7 +4015,7 @@ __metadata: react-native-screens: ^3.24.0 react-native-svg: ^13.13.0 react-native-svg-transformer: ^1.1.0 - react-native-video: alpha + react-native-video: latest react-native-webrtc: ^111.0.3 react-query: ^3.39.3 react-test-renderer: 18.2.0 @@ -5022,6 +5022,13 @@ __metadata: languageName: node linkType: hard +"eme-encryption-scheme-polyfill@npm:^2.0.1": + version: 2.1.1 + resolution: "eme-encryption-scheme-polyfill@npm:2.1.1" + checksum: 5d67fac0f95cc7e2066c68a15d8ecfb508d0c3774d3b8a37013da1a3a6a25ce86d6f8e185d885aa802c1fca48a3348f13dd310e54966fb96faba833a1e62000b + languageName: node + linkType: hard + "emittery@npm:^0.13.1": version: 0.13.1 resolution: "emittery@npm:0.13.1" @@ -9773,17 +9780,15 @@ __metadata: languageName: node linkType: hard -"react-native-video@npm:alpha": - version: 6.0.0-alpha.8 - resolution: "react-native-video@npm:6.0.0-alpha.8" +"react-native-video@npm:latest": + version: 5.2.1 + resolution: "react-native-video@npm:5.2.1" dependencies: deprecated-react-native-prop-types: ^2.2.0 keymirror: ^0.1.1 prop-types: ^15.7.2 - peerDependencies: - react: "*" - react-native: "*" - checksum: cfbfd7dcf450f6ddd825409bf87c25ba5423fc7b16f5e42ca9fbadd891d9c47afc68fb167cf2222ad6194cd13cebbabd53fc28447bbbda31f282fa46fae0f23f + shaka-player: ^2.5.9 + checksum: efbc09a47e3080dde2986a3a1ea3f32b815317f99013c015522fd2e6ed937ed02244761f4dd5c8f5bf0260bf8a1d518315025cae499c16a6c3b1cd0fa6935d2d languageName: node linkType: hard @@ -10376,6 +10381,15 @@ __metadata: languageName: node linkType: hard +"shaka-player@npm:^2.5.9": + version: 2.5.23 + resolution: "shaka-player@npm:2.5.23" + dependencies: + eme-encryption-scheme-polyfill: ^2.0.1 + checksum: 219c5ab073edd0f70582809df533d29f0369a5d8e31507ea76ddc71f3c8e11e9b63b61671ce19d7d3c464d7f3035581a4820903535ce24d4d5da7a94a98ca064 + languageName: node + linkType: hard + "shallow-clone@npm:^3.0.0": version: 3.0.1 resolution: "shallow-clone@npm:3.0.1" From 0505212d00c8058c7d141ab9a881064cc9c2c209 Mon Sep 17 00:00:00 2001 From: Billy Jacoby Date: Sun, 24 Sep 2023 21:03:16 -0400 Subject: [PATCH 2/2] feat: add section data headers --- src/assets/icons/downSquare.svg | 4 + src/components/VideoPlayer.tsx | 11 ++- src/components/snapshotCard.tsx | 15 +-- src/screens/EventsScreen/EventsScreen.tsx | 94 +++++++++++++++---- .../EventsScreen/components/CameraEvent.tsx | 31 +++--- .../EventsScreen/components/EventDetails.tsx | 4 +- .../components/SectionDateHeader.tsx | 40 ++++++++ .../{homeScreen.tsx => HomeScreen.tsx} | 0 src/utils/colors.ts | 8 ++ 9 files changed, 170 insertions(+), 37 deletions(-) create mode 100644 src/assets/icons/downSquare.svg create mode 100644 src/screens/EventsScreen/components/SectionDateHeader.tsx rename src/screens/{homeScreen.tsx => HomeScreen.tsx} (100%) diff --git a/src/assets/icons/downSquare.svg b/src/assets/icons/downSquare.svg new file mode 100644 index 0000000..1d3b177 --- /dev/null +++ b/src/assets/icons/downSquare.svg @@ -0,0 +1,4 @@ + + + + diff --git a/src/components/VideoPlayer.tsx b/src/components/VideoPlayer.tsx index 2a5bc5b..d64d7f9 100644 --- a/src/components/VideoPlayer.tsx +++ b/src/components/VideoPlayer.tsx @@ -1,18 +1,25 @@ +import React from 'react'; + import Video from 'react-native-video'; export const VideoPlayer = ({ videoURI, isPaused = true, + snapshotURL, }: { videoURI: string; isPaused?: boolean; + snapshotURL?: string; }) => { + React.useEffect(() => {}, []); return (