Fix Reanimated bug & Finalize Create Lib

This commit is contained in:
Utku Bakir 2022-09-04 16:26:20 +03:00
parent 358874533b
commit 107f30276b
6 changed files with 166 additions and 113 deletions

View file

@ -9,11 +9,11 @@ PODS:
- ExpoModulesCore
- EXFont (10.2.0):
- ExpoModulesCore
- Expo (46.0.9):
- Expo (46.0.10):
- ExpoModulesCore
- ExpoKeepAwake (10.2.0):
- ExpoModulesCore
- ExpoModulesCore (0.11.4):
- ExpoModulesCore (0.11.5):
- React-Core
- ReactCommon/turbomodule/core
- EXSplashScreen (0.16.2):
@ -31,6 +31,10 @@ PODS:
- glog (0.3.5)
- hermes-engine (0.69.4)
- libevent (2.1.12)
- lottie-ios (3.4.2)
- lottie-react-native (5.1.4):
- lottie-ios (~> 3.4.0)
- React-Core
- RCT-Folly (2021.06.28.00-v2):
- boost
- DoubleConversion
@ -335,7 +339,7 @@ PODS:
- React-Core
- RNGestureHandler (2.5.0):
- React-Core
- RNReanimated (2.9.1):
- RNReanimated (2.10.0):
- DoubleConversion
- FBLazyVector
- FBReactNativeSpec
@ -372,19 +376,20 @@ PODS:
DEPENDENCIES:
- boost (from `../node_modules/react-native/third-party-podspecs/boost.podspec`)
- DoubleConversion (from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`)
- "EXApplication (from `../node_modules/.pnpm/expo-application@4.2.2_expo@46.0.9/node_modules/expo-application/ios`)"
- "EXConstants (from `../node_modules/.pnpm/expo-constants@13.2.4_expo@46.0.9/node_modules/expo-constants/ios`)"
- "EXFileSystem (from `../node_modules/.pnpm/expo-file-system@14.1.0_expo@46.0.9/node_modules/expo-file-system/ios`)"
- "EXFont (from `../node_modules/.pnpm/expo-font@10.2.0_expo@46.0.9/node_modules/expo-font/ios`)"
- "Expo (from `../node_modules/.pnpm/expo@46.0.9_@babel+core@7.18.10/node_modules/expo`)"
- "ExpoKeepAwake (from `../node_modules/.pnpm/expo-keep-awake@10.2.0_expo@46.0.9/node_modules/expo-keep-awake/ios`)"
- "ExpoModulesCore (from `../node_modules/.pnpm/expo-modules-core@0.11.4/node_modules/expo-modules-core/ios`)"
- "EXSplashScreen (from `../node_modules/.pnpm/expo-splash-screen@0.16.2_expo@46.0.9/node_modules/expo-splash-screen/ios`)"
- "EXApplication (from `../node_modules/.pnpm/expo-application@4.2.2_expo@46.0.10/node_modules/expo-application/ios`)"
- "EXConstants (from `../node_modules/.pnpm/expo-constants@13.2.4_expo@46.0.10/node_modules/expo-constants/ios`)"
- "EXFileSystem (from `../node_modules/.pnpm/expo-file-system@14.1.0_expo@46.0.10/node_modules/expo-file-system/ios`)"
- "EXFont (from `../node_modules/.pnpm/expo-font@10.2.0_expo@46.0.10/node_modules/expo-font/ios`)"
- "Expo (from `../node_modules/.pnpm/expo@46.0.10_@babel+core@7.18.10/node_modules/expo`)"
- "ExpoKeepAwake (from `../node_modules/.pnpm/expo-keep-awake@10.2.0_expo@46.0.10/node_modules/expo-keep-awake/ios`)"
- "ExpoModulesCore (from `../node_modules/.pnpm/expo-modules-core@0.11.5/node_modules/expo-modules-core/ios`)"
- "EXSplashScreen (from `../node_modules/.pnpm/expo-splash-screen@0.16.2_expo@46.0.10/node_modules/expo-splash-screen/ios`)"
- FBLazyVector (from `../node_modules/react-native/Libraries/FBLazyVector`)
- FBReactNativeSpec (from `../node_modules/react-native/React/FBReactNativeSpec`)
- glog (from `../node_modules/react-native/third-party-podspecs/glog.podspec`)
- hermes-engine (from `../node_modules/react-native/sdks/hermes/hermes-engine.podspec`)
- libevent (~> 2.1.12)
- lottie-react-native (from `../node_modules/lottie-react-native`)
- RCT-Folly (from `../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec`)
- RCTRequired (from `../node_modules/react-native/Libraries/RCTRequired`)
- RCTTypeSafety (from `../node_modules/react-native/Libraries/TypeSafety`)
@ -426,6 +431,7 @@ SPEC REPOS:
trunk:
- fmt
- libevent
- lottie-ios
EXTERNAL SOURCES:
boost:
@ -433,21 +439,21 @@ EXTERNAL SOURCES:
DoubleConversion:
:podspec: "../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec"
EXApplication:
:path: "../node_modules/.pnpm/expo-application@4.2.2_expo@46.0.9/node_modules/expo-application/ios"
:path: "../node_modules/.pnpm/expo-application@4.2.2_expo@46.0.10/node_modules/expo-application/ios"
EXConstants:
:path: "../node_modules/.pnpm/expo-constants@13.2.4_expo@46.0.9/node_modules/expo-constants/ios"
:path: "../node_modules/.pnpm/expo-constants@13.2.4_expo@46.0.10/node_modules/expo-constants/ios"
EXFileSystem:
:path: "../node_modules/.pnpm/expo-file-system@14.1.0_expo@46.0.9/node_modules/expo-file-system/ios"
:path: "../node_modules/.pnpm/expo-file-system@14.1.0_expo@46.0.10/node_modules/expo-file-system/ios"
EXFont:
:path: "../node_modules/.pnpm/expo-font@10.2.0_expo@46.0.9/node_modules/expo-font/ios"
:path: "../node_modules/.pnpm/expo-font@10.2.0_expo@46.0.10/node_modules/expo-font/ios"
Expo:
:path: "../node_modules/.pnpm/expo@46.0.9_@babel+core@7.18.10/node_modules/expo"
:path: "../node_modules/.pnpm/expo@46.0.10_@babel+core@7.18.10/node_modules/expo"
ExpoKeepAwake:
:path: "../node_modules/.pnpm/expo-keep-awake@10.2.0_expo@46.0.9/node_modules/expo-keep-awake/ios"
:path: "../node_modules/.pnpm/expo-keep-awake@10.2.0_expo@46.0.10/node_modules/expo-keep-awake/ios"
ExpoModulesCore:
:path: "../node_modules/.pnpm/expo-modules-core@0.11.4/node_modules/expo-modules-core/ios"
:path: "../node_modules/.pnpm/expo-modules-core@0.11.5/node_modules/expo-modules-core/ios"
EXSplashScreen:
:path: "../node_modules/.pnpm/expo-splash-screen@0.16.2_expo@46.0.9/node_modules/expo-splash-screen/ios"
:path: "../node_modules/.pnpm/expo-splash-screen@0.16.2_expo@46.0.10/node_modules/expo-splash-screen/ios"
FBLazyVector:
:path: "../node_modules/react-native/Libraries/FBLazyVector"
FBReactNativeSpec:
@ -456,6 +462,8 @@ EXTERNAL SOURCES:
:podspec: "../node_modules/react-native/third-party-podspecs/glog.podspec"
hermes-engine:
:podspec: "../node_modules/react-native/sdks/hermes/hermes-engine.podspec"
lottie-react-native:
:path: "../node_modules/lottie-react-native"
RCT-Folly:
:podspec: "../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec"
RCTRequired:
@ -534,9 +542,9 @@ SPEC CHECKSUMS:
EXConstants: 7c44785d41d8e959d527d23d29444277a4d1ee73
EXFileSystem: 927e0a8885aa9c49e50fc38eaba2c2389f2f1019
EXFont: a5d80bd9b3452b2d5abbce2487da89b0150e6487
Expo: 73412414e62f5cbc6e713def821de70b92cd3ad6
Expo: fcdb32274e2ca9c7638d3b21b30fb665c6869219
ExpoKeepAwake: 0e8f18142e71bbf2c7f6aa66ebed249ba1420320
ExpoModulesCore: e281bb7b78ea47e227dd5af94d04b24d8b2e1255
ExpoModulesCore: 5a973701f4400d70254bc836305228731c829010
EXSplashScreen: 799bece80089219b2c989c1082d70f3b00995cda
FBLazyVector: c71b8c429a8af2aff1013934a7152e9d9d0c937d
FBReactNativeSpec: 3cc5cff7d792e74a875be91e56d6242335016f50
@ -544,6 +552,8 @@ SPEC CHECKSUMS:
glog: 3d02b25ca00c2d456734d0bcff864cbc62f6ae1a
hermes-engine: 761a544537e62df2a37189389b9d2654dc1f75af
libevent: 4049cae6c81cdb3654a443be001fb9bdceff7913
lottie-ios: 6bbc53eef6957e4744a50321507015fba72d8ca6
lottie-react-native: b702fab740cdb952a8e2354713d3beda63ff97b0
RCT-Folly: b9d9fe1fc70114b751c076104e52f3b1b5e5a95a
RCTRequired: bd9d2ab0fda10171fcbcf9ba61a7df4dc15a28f4
RCTTypeSafety: e44e139bf6ec8042db396201834fc2372f6a21cd
@ -575,7 +585,7 @@ SPEC CHECKSUMS:
RNCAsyncStorage: d81ee5c3db1060afd49ea7045ad460eff82d2b7d
RNCMaskedView: cb9670ea9239998340eaab21df13fa12a1f9de15
RNGestureHandler: bad495418bcbd3ab47017a38d93d290ebd406f50
RNReanimated: 2cf7451318bb9cc430abeec8d67693f9cf4e039c
RNReanimated: 7faa787e8d4493fbc95fab2ad331fa7625828cfa
RNScreens: 4a1af06327774490d97342c00aee0c2bafb497b7
RNSVG: 42a0c731b11179ebbd27a3eeeafa7201ebb476ff
Yoga: ff994563b2fd98c982ca58e8cd9db2cdaf4dda74

View file

@ -23,7 +23,7 @@
"byte-size": "^8.1.0",
"class-variance-authority": "^0.2.3",
"date-fns": "^2.29.2",
"expo": "~46.0.9",
"expo": "~46.0.10",
"expo-linking": "~3.2.2",
"expo-splash-screen": "~0.16.2",
"expo-status-bar": "~1.4.0",
@ -36,7 +36,7 @@
"react-native": "0.69.4",
"react-native-gesture-handler": "~2.5.0",
"react-native-heroicons": "^2.2.0",
"react-native-reanimated": "~2.9.1",
"react-native-reanimated": "~2.10.0",
"react-native-safe-area-context": "4.3.1",
"react-native-screens": "~3.15.0",
"react-native-svg": "13.0.0",
@ -47,7 +47,7 @@
"devDependencies": {
"@babel/core": "^7.18.6",
"@babel/runtime": "^7.18.9",
"@rnx-kit/metro-config": "^1.2.36",
"@rnx-kit/metro-config": "^1.2.37",
"@rnx-kit/metro-resolver-symlinks": "^0.1.21",
"@types/react": "~18.0.0",
"@types/react-native": "~0.69.1",

View file

@ -13,7 +13,7 @@ importers:
'@react-navigation/drawer': ^6.4.4
'@react-navigation/native': ^6.0.12
'@react-navigation/stack': ^6.2.3
'@rnx-kit/metro-config': ^1.2.36
'@rnx-kit/metro-config': ^1.2.37
'@rnx-kit/metro-resolver-symlinks': ^0.1.21
'@rspc/client': ^0.0.5
'@sd/assets': file:../../packages/assets
@ -31,7 +31,7 @@ importers:
eslint-plugin-react: ^7.30.1
eslint-plugin-react-hooks: ^4.6.0
eslint-plugin-react-native: ^4.0.0
expo: ~46.0.9
expo: ~46.0.10
expo-linking: ~3.2.2
expo-splash-screen: ~0.16.2
expo-status-bar: ~1.4.0
@ -45,7 +45,7 @@ importers:
react-native: 0.69.4
react-native-gesture-handler: ~2.5.0
react-native-heroicons: ^2.2.0
react-native-reanimated: ~2.9.1
react-native-reanimated: ~2.10.0
react-native-safe-area-context: 4.3.1
react-native-screens: ~3.15.0
react-native-svg: 13.0.0
@ -55,11 +55,11 @@ importers:
use-count-up: ^3.0.1
zustand: ^4.1.1
dependencies:
'@gorhom/bottom-sheet': 4.4.3_hswsf2nf37dbg7gtrzi6cykjxu
'@gorhom/bottom-sheet': 4.4.3_vlgoh3gg3ptp2ic2mlqzb2jwsy
'@react-native-async-storage/async-storage': 1.17.7_react-native@0.69.4
'@react-native-masked-view/masked-view': 0.2.7_jk6ntyzimkrv4hwdmdgaaf5yaa
'@react-navigation/bottom-tabs': 6.3.3_dd5e2d2op72fnp3nnpqh5tisfi
'@react-navigation/drawer': 6.4.4_3sd7ku33qiia6b23qkrjwa2ek4
'@react-navigation/drawer': 6.4.4_ywqefi2mkvedjihbydxse4r6wi
'@react-navigation/native': 6.0.12_jk6ntyzimkrv4hwdmdgaaf5yaa
'@react-navigation/stack': 6.2.3_g6rcykmgspzf2j66bcli5dyok4
'@rspc/client': 0.0.5_jk6ntyzimkrv4hwdmdgaaf5yaa
@ -68,9 +68,9 @@ importers:
byte-size: 8.1.0
class-variance-authority: 0.2.3_typescript@4.7.4
date-fns: 2.29.2
expo: 46.0.9_@babel+core@7.18.10
expo-linking: 3.2.2_expo@46.0.9
expo-splash-screen: 0.16.2_expo@46.0.9
expo: 46.0.10_@babel+core@7.18.10
expo-linking: 3.2.2_expo@46.0.10
expo-splash-screen: 0.16.2_expo@46.0.10
expo-status-bar: 1.4.0
immer: 9.0.15
intl: 1.2.5
@ -81,7 +81,7 @@ importers:
react-native: 0.69.4_k6xwmnqmgysg6weibx66ue6pyi
react-native-gesture-handler: 2.5.0_jk6ntyzimkrv4hwdmdgaaf5yaa
react-native-heroicons: 2.2.0_wxlif5cfng7xfd3uerlw46xcs4
react-native-reanimated: 2.9.1_s4gdcbt2zwshcgkhtvkmdoj3my
react-native-reanimated: 2.10.0_s4gdcbt2zwshcgkhtvkmdoj3my
react-native-safe-area-context: 4.3.1_jk6ntyzimkrv4hwdmdgaaf5yaa
react-native-screens: 3.15.0_jk6ntyzimkrv4hwdmdgaaf5yaa
react-native-svg: 13.0.0_jk6ntyzimkrv4hwdmdgaaf5yaa
@ -91,7 +91,7 @@ importers:
devDependencies:
'@babel/core': 7.18.10
'@babel/runtime': 7.18.9
'@rnx-kit/metro-config': 1.2.36_s4gdcbt2zwshcgkhtvkmdoj3my
'@rnx-kit/metro-config': 1.2.37_s4gdcbt2zwshcgkhtvkmdoj3my
'@rnx-kit/metro-resolver-symlinks': 0.1.21
'@types/react': 18.0.15
'@types/react-native': 0.69.5
@ -167,6 +167,15 @@ packages:
'@jridgewell/gen-mapping': 0.3.2
jsesc: 2.5.2
/@babel/generator/7.18.13:
resolution: {integrity: sha512-CkPg8ySSPuHTYPJYo7IRALdqyjM9HCbt/3uOBEFbzyGVP6Mn8bwFPB0jX6982JVNBlYzM1nnPkfjuXSOPtQeEQ==}
engines: {node: '>=6.9.0'}
dependencies:
'@babel/types': 7.18.13
'@jridgewell/gen-mapping': 0.3.2
jsesc: 2.5.2
dev: true
/@babel/helper-annotate-as-pure/7.18.6:
resolution: {integrity: sha512-duORpUiYrEpzKIop6iNbjnwKLAKnJ47csTyRACyEmWj0QdUrm5aqNJGHSSEQSUAvNW0ojX0dOmK9dZduvkfeXA==}
engines: {node: '>=6.9.0'}
@ -404,6 +413,14 @@ packages:
dependencies:
'@babel/types': 7.18.10
/@babel/parser/7.18.13:
resolution: {integrity: sha512-dgXcIfMuQ0kgzLB2b9tRZs7TTFFaGM2AbtA4fJgUUYukzGH4jwsS7hzQHEGs67jdehpm22vkgKwvbU+aEflgwg==}
engines: {node: '>=6.0.0'}
hasBin: true
dependencies:
'@babel/types': 7.18.13
dev: true
/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/7.18.6_@babel+core@7.18.10:
resolution: {integrity: sha512-Dgxsyg54Fx1d4Nge8UnvTrED63vrwOdPmyvPzlNN/boaliRP54pm3pGzZD1SJUwrBA+Cs/xdG8kXX6Mn/RfISQ==}
engines: {node: '>=6.9.0'}
@ -1414,6 +1431,24 @@ packages:
transitivePeerDependencies:
- supports-color
/@babel/traverse/7.18.13:
resolution: {integrity: sha512-N6kt9X1jRMLPxxxPYWi7tgvJRH/rtoU+dbKAPDM44RFHiMH8igdsaSBgFeskhSl/kLWLDUvIh1RXCrTmg0/zvA==}
engines: {node: '>=6.9.0'}
dependencies:
'@babel/code-frame': 7.18.6
'@babel/generator': 7.18.13
'@babel/helper-environment-visitor': 7.18.9
'@babel/helper-function-name': 7.18.9
'@babel/helper-hoist-variables': 7.18.6
'@babel/helper-split-export-declaration': 7.18.6
'@babel/parser': 7.18.13
'@babel/types': 7.18.13
debug: 4.3.4
globals: 11.12.0
transitivePeerDependencies:
- supports-color
dev: true
/@babel/types/7.18.10:
resolution: {integrity: sha512-MJvnbEiiNkpjo+LknnmRrqbY1GPUUggjv+wQVjetM/AONoupqRALB7I6jGqNUAZsKcRIEu2J6FRFvsczljjsaQ==}
engines: {node: '>=6.9.0'}
@ -1812,7 +1847,7 @@ packages:
resolution: {integrity: sha512-k2Ty1JcVojjJFwrg/ThKi2ujJ7XNLYaFGNB/bWT9wGR+oSMJHMa5w+CUq6p/pVrKeNNgA7pCqEcjSnHVoqJQFw==}
dev: false
/@gorhom/bottom-sheet/4.4.3_hswsf2nf37dbg7gtrzi6cykjxu:
/@gorhom/bottom-sheet/4.4.3_vlgoh3gg3ptp2ic2mlqzb2jwsy:
resolution: {integrity: sha512-ZEbCLbvLaEVNa9c+om/o9Le0q7o9GkEM7smhuoFkqj9CIjv3XbpZof7uEKV86yyta+ONAInNYrCdVSpYQ1Rjkg==}
peerDependencies:
react: '*'
@ -1826,8 +1861,8 @@ packages:
react: 18.0.0
react-native: 0.69.4_k6xwmnqmgysg6weibx66ue6pyi
react-native-gesture-handler: 2.5.0_jk6ntyzimkrv4hwdmdgaaf5yaa
react-native-reanimated: 2.9.1_s4gdcbt2zwshcgkhtvkmdoj3my
react-native-redash: 16.3.0_hswsf2nf37dbg7gtrzi6cykjxu
react-native-reanimated: 2.10.0_s4gdcbt2zwshcgkhtvkmdoj3my
react-native-redash: 16.3.0_vlgoh3gg3ptp2ic2mlqzb2jwsy
dev: false
/@gorhom/portal/1.0.13_jk6ntyzimkrv4hwdmdgaaf5yaa:
@ -2291,7 +2326,7 @@ packages:
use-latest-callback: 0.1.5
dev: false
/@react-navigation/drawer/6.4.4_3sd7ku33qiia6b23qkrjwa2ek4:
/@react-navigation/drawer/6.4.4_ywqefi2mkvedjihbydxse4r6wi:
resolution: {integrity: sha512-ckwnxX7foekkxgZc4nO38d4t9ISZqPnzNQjNgvWM7MiP9KPzI8/fWWpX8YFlk/5CmgaPV7RkgZoDWv8y8aeV7w==}
peerDependencies:
'@react-navigation/native': ^6.0.0
@ -2308,7 +2343,7 @@ packages:
react: 18.0.0
react-native: 0.69.4_k6xwmnqmgysg6weibx66ue6pyi
react-native-gesture-handler: 2.5.0_jk6ntyzimkrv4hwdmdgaaf5yaa
react-native-reanimated: 2.9.1_s4gdcbt2zwshcgkhtvkmdoj3my
react-native-reanimated: 2.10.0_s4gdcbt2zwshcgkhtvkmdoj3my
react-native-safe-area-context: 4.3.1_jk6ntyzimkrv4hwdmdgaaf5yaa
react-native-screens: 3.15.0_jk6ntyzimkrv4hwdmdgaaf5yaa
warn-once: 0.1.1
@ -2384,8 +2419,8 @@ packages:
- supports-color
dev: true
/@rnx-kit/metro-config/1.2.36_s4gdcbt2zwshcgkhtvkmdoj3my:
resolution: {integrity: sha512-/JH8S62oN1EAS6v0sznQtkY+iMl0iACZExT61z8L2jMkEULRiMqqTzx9YS0ci/mcjRMDkwOqq4VkLRr5XzvAxg==}
/@rnx-kit/metro-config/1.2.37_s4gdcbt2zwshcgkhtvkmdoj3my:
resolution: {integrity: sha512-bztHJDOhZCmABsuz9CylzT2OTxXwzxhTWuvSf2CngrYCP6Ve25jVmfy/hp8bUQ8pnGw1P44yHY9R1lufY5/p6g==}
peerDependencies:
metro-config: '>=0.58.0'
react: '*'
@ -3108,7 +3143,7 @@ packages:
'@babel/core': 7.18.10
'@babel/helper-plugin-utils': 7.18.9
'@babel/plugin-syntax-typescript': 7.18.6_@babel+core@7.18.10
'@babel/traverse': 7.18.11
'@babel/traverse': 7.18.13
transitivePeerDependencies:
- supports-color
dev: true
@ -3161,8 +3196,8 @@ packages:
transitivePeerDependencies:
- supports-color
/babel-plugin-react-native-web/0.18.8:
resolution: {integrity: sha512-4UwlBe9ZiWNMes8nK+qRn9ql6nZuSKcgu87YuFmnU9maEYIP1megcRcjbA5mAViaV3ct6PTyntTVf8thathf6Q==}
/babel-plugin-react-native-web/0.18.9:
resolution: {integrity: sha512-A9rrSfV98CFRS+ACgZorxaHH8gDrVyK2Nea8OHepY4Sv/Mf+vk8uvQq+tRUEBpHnUvd/qRDKIjFLbygecAt9VA==}
dev: false
/babel-plugin-syntax-trailing-function-commas/7.0.0-beta.0:
@ -3175,7 +3210,7 @@ packages:
'@babel/plugin-transform-react-jsx': 7.18.10_@babel+core@7.18.10
'@babel/preset-env': 7.18.10_@babel+core@7.18.10
babel-plugin-module-resolver: 4.1.0
babel-plugin-react-native-web: 0.18.8
babel-plugin-react-native-web: 0.18.9
metro-react-native-babel-preset: 0.70.3_@babel+core@7.18.10
transitivePeerDependencies:
- '@babel/core'
@ -4429,20 +4464,20 @@ packages:
transitivePeerDependencies:
- supports-color
/expo-application/4.2.2_expo@46.0.9:
/expo-application/4.2.2_expo@46.0.10:
resolution: {integrity: sha512-bFEaFRUdV6aK2iBd+HzkHNPYsyj88EAhaQW5leznmO0qQMJxpAQ3eoUXMey1hfDBh1qgkkHgSyCZ9BIgMAGJ1g==}
peerDependencies:
expo: '*'
dependencies:
expo: 46.0.9_@babel+core@7.18.10
expo: 46.0.10_@babel+core@7.18.10
dev: false
/expo-asset/8.6.1_expo@46.0.9:
/expo-asset/8.6.1_expo@46.0.10:
resolution: {integrity: sha512-urbUp1YtwH2J0Qc3inGQJdqTjWKML77SeMNgff+iR9MUE8gDkFqSCDjrBi7i5Oj5DDtq43mmtDg8G8ei6Vchcg==}
dependencies:
blueimp-md5: 2.19.0
expo-constants: 13.2.4_expo@46.0.9
expo-file-system: 14.1.0_expo@46.0.9
expo-constants: 13.2.4_expo@46.0.10
expo-file-system: 14.1.0_expo@46.0.10
invariant: 2.2.4
md5-file: 3.2.3
path-browserify: 1.0.1
@ -4452,62 +4487,62 @@ packages:
- supports-color
dev: false
/expo-constants/13.2.4_expo@46.0.9:
/expo-constants/13.2.4_expo@46.0.10:
resolution: {integrity: sha512-Zobau8EuTk2GgafwkfGnWM6CmSLB7X8qnQXVuXe0nd3v92hfQUmRWGhJwH88uxXj3LrfqctM6PaJ8taG1vxfBw==}
peerDependencies:
expo: '*'
dependencies:
'@expo/config': 7.0.1
expo: 46.0.9_@babel+core@7.18.10
expo: 46.0.10_@babel+core@7.18.10
uuid: 3.4.0
transitivePeerDependencies:
- supports-color
dev: false
/expo-error-recovery/3.2.0_expo@46.0.9:
/expo-error-recovery/3.2.0_expo@46.0.10:
resolution: {integrity: sha512-XZ630ks5HNxa9oc2Ya1hEn1ez031Cy4VnyxerPC2o9fKNKSrD/64cRqGF9NkGM3X2uf8+PCB9adxVflAIXBf6w==}
requiresBuild: true
peerDependencies:
expo: '*'
dependencies:
expo: 46.0.9_@babel+core@7.18.10
expo: 46.0.10_@babel+core@7.18.10
dev: false
optional: true
/expo-file-system/14.1.0_expo@46.0.9:
/expo-file-system/14.1.0_expo@46.0.10:
resolution: {integrity: sha512-lJcPGQ8yKXVknVkD5TmcJnR/TpQbEL0JP8hknLejfq3FIqPqI/LBFn31YiP37grxW8lITz1al8pq5T6CSUjAzQ==}
peerDependencies:
expo: '*'
dependencies:
'@expo/config-plugins': 5.0.1
expo: 46.0.9_@babel+core@7.18.10
expo: 46.0.10_@babel+core@7.18.10
uuid: 3.4.0
transitivePeerDependencies:
- supports-color
dev: false
/expo-font/10.2.0_expo@46.0.9:
/expo-font/10.2.0_expo@46.0.10:
resolution: {integrity: sha512-2V4EcpmhNoppaLn+lPprZVS+3bmV9hxLPKttKh2u8ghjH/oX9bv3u4JVo77SYh0EfrWO4toqVyXn8pXH8GpbIg==}
peerDependencies:
expo: '*'
dependencies:
expo: 46.0.9_@babel+core@7.18.10
expo: 46.0.10_@babel+core@7.18.10
fontfaceobserver: 2.3.0
dev: false
/expo-keep-awake/10.2.0_expo@46.0.9:
/expo-keep-awake/10.2.0_expo@46.0.10:
resolution: {integrity: sha512-kIRtO4Hmrvxh4E45IPWG/NiUZsuRe1AQwBT09pq+kx8nm6tUS4B9TeL6+1NFy+qVBLbGKDqoQD5Ez7XYTFtBeQ==}
peerDependencies:
expo: '*'
dependencies:
expo: 46.0.9_@babel+core@7.18.10
expo: 46.0.10_@babel+core@7.18.10
dev: false
/expo-linking/3.2.2_expo@46.0.9:
/expo-linking/3.2.2_expo@46.0.10:
resolution: {integrity: sha512-2OY7WAyZXuc8zdTGm2rLu5ESJaFL2TYmPHsJuDJcfIJFaw+nS5vIVk5DGPlk+zCNC3uoqT02t7a5PZVp2bvqtQ==}
dependencies:
'@types/qs': 6.9.7
expo-constants: 13.2.4_expo@46.0.9
expo-constants: 13.2.4_expo@46.0.10
invariant: 2.2.4
qs: 6.11.0
url-parse: 1.5.10
@ -4527,21 +4562,21 @@ packages:
fs-extra: 9.1.0
dev: false
/expo-modules-core/0.11.4:
resolution: {integrity: sha512-8dEYICk7hUi1GPz5hWm8dBuZDGc+4Tm7zDhSIhKApo5jY/5vB4Bk+fjPo693iWn6pp3+XBHT8Ri8rJ3G7wH1vQ==}
/expo-modules-core/0.11.5:
resolution: {integrity: sha512-KmTHtaL21M1AzKOmu3YM5K8ddCbbr6wgooG4uCb+o+7zZXe+BPP4jAPs5LLez1Et34OQcyjopxUpJ8r43HImvQ==}
dependencies:
compare-versions: 3.6.0
invariant: 2.2.4
dev: false
/expo-splash-screen/0.16.2_expo@46.0.9:
/expo-splash-screen/0.16.2_expo@46.0.10:
resolution: {integrity: sha512-AHSRyGwu58WNt8shW5g/4cQ9e9IzUwNTC/WGWxshHCwgbWIJmHLvK3+D45MTmzGWteOoTI8oV7KSQKBNJSTiyw==}
peerDependencies:
expo: '*'
dependencies:
'@expo/configure-splash-screen': 0.6.0
'@expo/prebuild-config': 5.0.3
expo: 46.0.9_@babel+core@7.18.10
expo: 46.0.10_@babel+core@7.18.10
transitivePeerDependencies:
- encoding
- expo-modules-autolinking
@ -4552,8 +4587,8 @@ packages:
resolution: {integrity: sha512-vh98g8qMIjig/2XTBsoAWS6Vo2dIIwDWjB3/GiuZ9Lazpxc9GO/APfJ4dar7MibzIDUKIrjotrcL6rLdPH13Ew==}
dev: false
/expo/46.0.9_@babel+core@7.18.10:
resolution: {integrity: sha512-UsBjm0BL7w+OyF6kypVPrk3jhg9cCXF0D9CaOWQ+cedm7oT4mTVQx9+A45VsDvLzNWBjJejZQZ1PFKqOY5HNcQ==}
/expo/46.0.10_@babel+core@7.18.10:
resolution: {integrity: sha512-MUDLTnBYOOabzFo2HATTMXiAYoQ4n1IWBM3HlOmsQVoMBKOs6FcZDqte/lwK80KkhHIpr1Q37JD8Dq1Fk4b9eA==}
hasBin: true
dependencies:
'@babel/runtime': 7.18.9
@ -4561,14 +4596,14 @@ packages:
'@expo/vector-icons': 13.0.0
babel-preset-expo: 9.2.0_@babel+core@7.18.10
cross-spawn: 6.0.5
expo-application: 4.2.2_expo@46.0.9
expo-asset: 8.6.1_expo@46.0.9
expo-constants: 13.2.4_expo@46.0.9
expo-file-system: 14.1.0_expo@46.0.9
expo-font: 10.2.0_expo@46.0.9
expo-keep-awake: 10.2.0_expo@46.0.9
expo-application: 4.2.2_expo@46.0.10
expo-asset: 8.6.1_expo@46.0.10
expo-constants: 13.2.4_expo@46.0.10
expo-file-system: 14.1.0_expo@46.0.10
expo-font: 10.2.0_expo@46.0.10
expo-keep-awake: 10.2.0_expo@46.0.10
expo-modules-autolinking: 0.10.3
expo-modules-core: 0.11.4
expo-modules-core: 0.11.5
fbemitter: 3.0.0
getenv: 1.0.0
invariant: 2.2.4
@ -4577,7 +4612,7 @@ packages:
pretty-format: 26.6.2
uuid: 3.4.0
optionalDependencies:
expo-error-recovery: 3.2.0_expo@46.0.9
expo-error-recovery: 3.2.0_expo@46.0.10
transitivePeerDependencies:
- '@babel/core'
- bluebird
@ -7164,15 +7199,14 @@ packages:
react-native-svg: 13.0.0_jk6ntyzimkrv4hwdmdgaaf5yaa
dev: false
/react-native-reanimated/2.9.1_s4gdcbt2zwshcgkhtvkmdoj3my:
resolution: {integrity: sha512-309SIhDBwY4F1n6e5Mr5D1uPZm2ESIcmZsGXHUu8hpKX4oIOlZj2MilTk+kHhi05LjChoJkcpfkstotCJmPRPg==}
/react-native-reanimated/2.10.0_s4gdcbt2zwshcgkhtvkmdoj3my:
resolution: {integrity: sha512-jKm3xz5nX7ABtHzzuuLmawP0pFWP77lXNdIC6AWOceBs23OHUaJ29p4prxr/7Sb588GwTbkPsYkDqVFaE3ezNQ==}
peerDependencies:
'@babel/core': ^7.0.0-0
react: '*'
react-native: '*'
dependencies:
'@babel/core': 7.18.10
'@babel/plugin-proposal-export-namespace-from': 7.18.9_@babel+core@7.18.10
'@babel/plugin-transform-object-assign': 7.18.6_@babel+core@7.18.10
'@babel/preset-typescript': 7.18.6_@babel+core@7.18.10
'@types/invariant': 2.2.35
@ -7186,7 +7220,7 @@ packages:
- supports-color
dev: false
/react-native-redash/16.3.0_hswsf2nf37dbg7gtrzi6cykjxu:
/react-native-redash/16.3.0_vlgoh3gg3ptp2ic2mlqzb2jwsy:
resolution: {integrity: sha512-dhmeYbQ/usGzxZSGZmzmRuIFF2LrtJUKqgseKgf9Jdj0JQ7VM20m/LqTg60+wjxeiyAh2D/vKsQ2U7rMkuoplQ==}
peerDependencies:
react: '*'
@ -7200,7 +7234,7 @@ packages:
react: 18.0.0
react-native: 0.69.4_k6xwmnqmgysg6weibx66ue6pyi
react-native-gesture-handler: 2.5.0_jk6ntyzimkrv4hwdmdgaaf5yaa
react-native-reanimated: 2.9.1_s4gdcbt2zwshcgkhtvkmdoj3my
react-native-reanimated: 2.10.0_s4gdcbt2zwshcgkhtvkmdoj3my
dev: false
/react-native-safe-area-context/4.3.1_jk6ntyzimkrv4hwdmdgaaf5yaa:

View file

@ -12,8 +12,9 @@ import Dialog from '../layout/Dialog';
import Divider from '../primitive/Divider';
import { TextInput } from '../primitive/Input';
// TODO: Maybe minimize this when drawer is closed?
const DrawerLibraryManager = () => {
const [hide, setHide] = useState(true);
const [dropdownClosed, setDropdownClosed] = useState(true);
// Init Libraries
const { init: initLibraries, switchLibrary } = useLibraryStore();
@ -27,32 +28,35 @@ const DrawerLibraryManager = () => {
// Create Library
const [libName, setLibName] = useState('');
const [createLibOpen, setCreateLibOpen] = useState(false);
const { mutate: createLibrary, isLoading: createLibLoading } = useBridgeMutation(
'library.create',
{
onSuccess: () => {
setHide(true);
// Reset form
setLibName('');
},
onError: (err) => {
// TODO: Show toast?
console.log(err);
onSettled: () => {
// Close create lib dialog
setCreateLibOpen(false);
}
}
);
return (
<View>
<Pressable onPress={() => setHide((v) => !v)}>
<Pressable onPress={() => setDropdownClosed((v) => !v)}>
<View
style={tw.style(
'flex flex-row justify-between items-center px-3 h-10 w-full bg-gray-500 border border-[#333949] bg-opacity-40 shadow-sm',
hide ? 'rounded' : 'rounded-t border-b-gray-550'
dropdownClosed ? 'rounded' : 'rounded-t border-b-gray-550'
)}
>
<Text style={tw`text-gray-200 text-sm font-semibold`}>{currentLibrary?.config.name}</Text>
<MotiView
animate={{
rotateZ: hide ? '0deg' : '90deg'
rotateZ: dropdownClosed ? '0deg' : '90deg'
}}
transition={{ type: 'timing' }}
>
@ -60,13 +64,13 @@ const DrawerLibraryManager = () => {
</MotiView>
</View>
</Pressable>
<AnimatedHeight hide={hide}>
<AnimatedHeight hide={dropdownClosed}>
<View
style={tw`py-2 px-2 bg-gray-500 border-l border-b border-r border-[#333949] bg-opacity-40 rounded-b`}
>
{/* Libraries */}
{libraries?.map((library) => (
<Pressable key={library.uuid}>
<Pressable key={library.uuid} onPress={() => switchLibrary(library.uuid)}>
<View
style={tw.style(
'p-2',
@ -85,7 +89,10 @@ const DrawerLibraryManager = () => {
<Text style={tw`text-sm text-gray-200 font-semibold`}>Library Settings</Text>
</View>
</Pressable>
{/* Create Library */}
<Dialog
isVisible={createLibOpen}
setIsVisible={setCreateLibOpen}
title="Create New Library"
description="Choose a name for your new library, you can configure this and more settings from the library settings later on."
ctaLabel="Create"

View file

@ -10,10 +10,15 @@ type DialogProps = {
description?: string;
trigger?: React.ReactNode;
/**
* if `true`, dialog will be visible when mounted
* Can be used when trigger is not provided and/or you need to open the dialog programmatically
* if `true`, dialog will be visible when mounted.
* It can be used when trigger is not provided and/or you need to open the dialog programmatically
*/
isVisible?: boolean;
/**
* Like above, it will override the default dialog state for opening/closing the dialog.
* It can be used to control dialog state from outside
*/
setIsVisible?: (v: boolean) => void;
children?: React.ReactNode;
ctaAction?: () => void;
ctaLabel?: string;
@ -29,12 +34,18 @@ const Dialog = (props: DialogProps) => {
return (
<View>
{props.trigger && <Pressable onPress={() => setVisible(true)}>{props.trigger}</Pressable>}
<Modal renderToHardwareTextureAndroid transparent visible={visible}>
{props.trigger && (
<Pressable
onPress={() => (props.setIsVisible ? props.setIsVisible(true) : setVisible(true))}
>
{props.trigger}
</Pressable>
)}
<Modal renderToHardwareTextureAndroid transparent visible={props.isVisible ?? visible}>
{/* Backdrop */}
<Pressable
style={tw`bg-black bg-opacity-50 absolute inset-0`}
onPress={() => setVisible(false)}
onPress={() => (props.setIsVisible ? props.setIsVisible(false) : setVisible(false))}
disabled={props.disableBackdropClose}
/>
{/* Content */}
@ -44,7 +55,6 @@ const Dialog = (props: DialogProps) => {
keyboardVerticalOffset={Platform.OS === 'ios' ? 40 : undefined}
style={tw`flex-1 items-center justify-center`}
>
{/* TODO: Animations are not invoking everytime probably reanimated bug we have on File Modal */}
<MotiView
from={{ translateY: 40 }}
animate={{ translateY: 0 }}
@ -69,7 +79,13 @@ const Dialog = (props: DialogProps) => {
<View
style={tw`flex flex-row justify-end px-3 py-3 bg-gray-600 border-t border-gray-550`}
>
<Button variant="dark_gray" size="md" onPress={() => setVisible(false)}>
<Button
variant="dark_gray"
size="md"
onPress={() =>
props.setIsVisible ? props.setIsVisible(false) : setVisible(false)
}
>
<Text style={tw`text-white text-sm`}>Close</Text>
</Button>
{props.ctaAction && (

View file

@ -11,15 +11,6 @@ import Divider from '../primitive/Divider';
import ModalBackdrop from './layout/ModalBackdrop';
import ModalHandle from './layout/ModalHandle';
/*
https://github.com/software-mansion/react-native-reanimated/issues/3296
https://github.com/gorhom/react-native-bottom-sheet/issues/925
https://github.com/gorhom/react-native-bottom-sheet/issues/1036
Reanimated has a bug where it sometimes doesn't animate on mount (IOS only?), doing a console.log() seems to do a re-render and fix the issue.
We can't do this for production obvs but until then they might fix it so, let's not try weird hacks for now and live with the logs.
*/
interface MetaItemProps {
title: string;
value: string;
@ -46,8 +37,6 @@ export const FileModal = () => {
snapPoints={['60%', '90%']}
backdropComponent={ModalBackdrop}
handleComponent={ModalHandle}
// Do not remove!
onAnimate={(from, to) => console.log(from, to)}
>
{data && (
<View style={tw`flex-1 p-4 bg-gray-600`}>
@ -72,7 +61,6 @@ export const FileModal = () => {
{/* Divider */}
<Divider style={tw`my-6`} />
{/* Buttons */}
<Button onPress={() => fileRef.current.close()} title="Copy" color="white" />
<Button onPress={() => fileRef.current.close()} title="Move" color="white" />
<Button onPress={() => fileRef.current.close()} title="Share" color="white" />
@ -88,8 +76,6 @@ export const FileModal = () => {
snapPoints={['70%']}
backdropComponent={ModalBackdrop}
handleComponent={ModalHandle}
// Do not remove!
onAnimate={(from, to) => console.log(from, to)}
>
{data && (
<BottomSheetScrollView style={tw`flex-1 p-4 bg-gray-600`}>