File tree Expand file tree Collapse file tree
package/src/components/Poll/components Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,6 +10,8 @@ import {
1010 View ,
1111} from 'react-native' ;
1212
13+ import Animated , { LinearTransition , ZoomIn } from 'react-native-reanimated' ;
14+
1315import { useTheme , useTranslationContext } from '../../../contexts' ;
1416
1517export type PollInputDialogProps = {
@@ -52,7 +54,11 @@ export const PollInputDialog = ({
5254 behavior = { Platform . OS === 'ios' ? 'padding' : 'height' }
5355 style = { [ styles . transparentContainer , transparentContainer ] }
5456 >
55- < View style = { [ styles . container , { backgroundColor : white } , container ] } >
57+ < Animated . View
58+ entering = { ZoomIn . duration ( 200 ) }
59+ layout = { LinearTransition . duration ( 200 ) }
60+ style = { [ styles . container , { backgroundColor : white } , container ] }
61+ >
5662 < Text style = { [ styles . title , { color : black } , titleStyle ] } > { title } </ Text >
5763 < TextInput
5864 autoFocus = { true }
@@ -80,7 +86,7 @@ export const PollInputDialog = ({
8086 < Text style = { [ styles . button , { color : accent_dark_blue } , button ] } > { t ( 'SEND' ) } </ Text >
8187 </ Pressable >
8288 </ View >
83- </ View >
89+ </ Animated . View >
8490 </ KeyboardAvoidingView >
8591 </ Modal >
8692 ) ;
You can’t perform that action at this time.
0 commit comments