[🐴] Empty chat prompt (#4132)
* Add empty chat pill * Tweak padding * move to `components`, place inside `KeyboardStickyView` * cleanup unused vars * add a new animation type * (unrelated) add haptic to long press * adjust shrink and pop --------- Co-authored-by: Hailey <me@haileyok.com>
This commit is contained in:
parent
6dde487563
commit
a7b0242cc8
4 changed files with 143 additions and 12 deletions
27
src/lib/custom-animations/ShrinkAndPop.ts
Normal file
27
src/lib/custom-animations/ShrinkAndPop.ts
Normal file
|
@ -0,0 +1,27 @@
|
|||
import {withDelay, withSequence, withTiming} from 'react-native-reanimated'
|
||||
|
||||
export function ShrinkAndPop() {
|
||||
'worklet'
|
||||
|
||||
const animations = {
|
||||
opacity: withDelay(125, withTiming(0, {duration: 125})),
|
||||
transform: [
|
||||
{
|
||||
scale: withSequence(
|
||||
withTiming(0.7, {duration: 75}),
|
||||
withTiming(1.1, {duration: 150}),
|
||||
),
|
||||
},
|
||||
],
|
||||
}
|
||||
|
||||
const initialValues = {
|
||||
opacity: 1,
|
||||
transform: [{scale: 1}],
|
||||
}
|
||||
|
||||
return {
|
||||
animations,
|
||||
initialValues,
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue