File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed
package/src/components/MessageInput/components/InputButtons Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change 11import React , { useEffect } from 'react' ;
22import { StyleSheet } from 'react-native' ;
33
4- import Animated , { useAnimatedStyle , useSharedValue , withTiming } from 'react-native-reanimated' ;
4+ import Animated , {
5+ useAnimatedStyle ,
6+ useSharedValue ,
7+ withTiming ,
8+ ZoomIn ,
9+ ZoomOut ,
10+ } from 'react-native-reanimated' ;
511
612import { OwnCapabilitiesContextValue } from '../../../../contexts' ;
713import {
@@ -54,8 +60,10 @@ export const InputButtonsWithContext = (props: InputButtonsWithContextProps) =>
5460 }
5561
5662 return hasAttachmentUploadCapabilities ? (
57- < Animated . View style = { [ styles . attachButtonContainer , attachButtonContainer , animatedStyle ] } >
58- < AttachButton />
63+ < Animated . View entering = { ZoomIn . duration ( 200 ) } exiting = { ZoomOut . duration ( 200 ) } >
64+ < Animated . View style = { [ styles . attachButtonContainer , attachButtonContainer , animatedStyle ] } >
65+ < AttachButton />
66+ </ Animated . View >
5967 </ Animated . View >
6068 ) : null ;
6169} ;
You can’t perform that action at this time.
0 commit comments