Skip to content

Commit e65e514

Browse files
add layout animation android
1 parent f59ff15 commit e65e514

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/Endpoint.tsx

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, {Suspense} from 'react';
2-
import {Platform} from 'react-native';
2+
import {Platform, UIManager} from 'react-native';
33
import KeyboardManager from 'react-native-keyboard-manager';
44
import {RecoilRoot} from 'recoil';
55
import './common/i18n';
@@ -9,7 +9,11 @@ import ErrorBoundary from 'react-native-error-boundary';
99
import {QueryClientProvider} from 'react-query';
1010
import queryClient from './common/helpers/queryClient';
1111
import 'react-native-gesture-handler';
12-
12+
if (Platform.OS === 'android') {
13+
if (UIManager.setLayoutAnimationEnabledExperimental) {
14+
UIManager.setLayoutAnimationEnabledExperimental(true);
15+
}
16+
}
1317
if (Platform.OS === 'ios') {
1418
KeyboardManager.setEnable(true);
1519
KeyboardManager.setEnableDebugging(false);

0 commit comments

Comments
 (0)