Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Cache Reanimated worklets (#7068)

* Undo perf hackfix

* Bump Reanimated to include https://github.com/software-mansion/react-native-reanimated/pull/6758

* Bump to 3.17.0-nightly-20241211-17e89ca24

authored by

dan and committed by
GitHub
c8745a9a 084905c1

+11 -24
+1 -1
package.json
··· 181 181 "react-native-picker-select": "^9.3.1", 182 182 "react-native-progress": "bluesky-social/react-native-progress", 183 183 "react-native-qrcode-styled": "^0.3.3", 184 - "react-native-reanimated": "^3.16.3", 184 + "react-native-reanimated": "3.17.0-nightly-20241211-17e89ca24", 185 185 "react-native-root-siblings": "^4.1.1", 186 186 "react-native-safe-area-context": "4.14.0", 187 187 "react-native-screens": "~4.3.0",
+6 -19
src/view/com/util/MainScrollProvider.tsx
··· 1 1 import React, {useCallback, useEffect} from 'react' 2 2 import {NativeScrollEvent} from 'react-native' 3 - import { 4 - interpolate, 5 - makeMutable, 6 - useSharedValue, 7 - withSpring, 8 - } from 'react-native-reanimated' 3 + import {interpolate, useSharedValue, withSpring} from 'react-native-reanimated' 9 4 import EventEmitter from 'eventemitter3' 10 5 11 6 import {ScrollProvider} from '#/lib/ScrollContext' ··· 20 15 return Math.min(Math.max(num, min), max) 21 16 } 22 17 23 - const V0 = makeMutable( 24 - withSpring(0, { 25 - overshootClamping: true, 26 - }), 27 - ) 28 - 29 - const V1 = makeMutable( 30 - withSpring(1, { 31 - overshootClamping: true, 32 - }), 33 - ) 34 - 35 18 export function MainScrollProvider({children}: {children: React.ReactNode}) { 36 19 const {headerHeight} = useShellLayout() 37 20 const {headerMode} = useMinimalShellMode() ··· 42 25 const setMode = React.useCallback( 43 26 (v: boolean) => { 44 27 'worklet' 45 - headerMode.set(v ? V1.get() : V0.get()) 28 + headerMode.set(() => 29 + withSpring(v ? 1 : 0, { 30 + overshootClamping: true, 31 + }), 32 + ) 46 33 }, 47 34 [headerMode], 48 35 )
+4 -4
yarn.lock
··· 16047 16047 qrcode "^1.5.4" 16048 16048 react-fast-compare "^3.2.2" 16049 16049 16050 - react-native-reanimated@^3.16.3: 16051 - version "3.16.3" 16052 - resolved "https://registry.yarnpkg.com/react-native-reanimated/-/react-native-reanimated-3.16.3.tgz#3b559dca49e9e40abcf5de834dc27fc05f856b66" 16053 - integrity sha512-OWlA6e1oHhytTpc7WiSZ7Tmb8OYwLKYZz29Sz6d6WAg60Hm5GuAiKIWUG7Ako7FLcYhFkA0pEQ2xPMEYUo9vlw== 16050 + react-native-reanimated@3.17.0-nightly-20241211-17e89ca24: 16051 + version "3.17.0-nightly-20241211-17e89ca24" 16052 + resolved "https://registry.yarnpkg.com/react-native-reanimated/-/react-native-reanimated-3.17.0-nightly-20241211-17e89ca24.tgz#af0c36e278646eb2f79e28ad0047cfd80d0e29f5" 16053 + integrity sha512-5p7jr0DrnID1puOzMel3VZVRw5Hl/UdMUvPCI1sEG9IA2mUaWrgeoojS2wVwW1U0Pj6HXjPNEimDSXZneZKNuQ== 16054 16054 dependencies: 16055 16055 "@babel/plugin-transform-arrow-functions" "^7.0.0-0" 16056 16056 "@babel/plugin-transform-class-properties" "^7.0.0-0"