Use android native animations (#6562)
This commit is contained in:
+1
-7
@@ -32,7 +32,7 @@ import {
|
|||||||
import {RouteParams, State} from '#/lib/routes/types'
|
import {RouteParams, State} from '#/lib/routes/types'
|
||||||
import {attachRouteToLogEvents, logEvent} from '#/lib/statsig/statsig'
|
import {attachRouteToLogEvents, logEvent} from '#/lib/statsig/statsig'
|
||||||
import {bskyTitle} from '#/lib/strings/headings'
|
import {bskyTitle} from '#/lib/strings/headings'
|
||||||
import {isAndroid, isNative, isWeb} from '#/platform/detection'
|
import {isNative, isWeb} from '#/platform/detection'
|
||||||
import {useModalControls} from '#/state/modals'
|
import {useModalControls} from '#/state/modals'
|
||||||
import {useUnreadNotifications} from '#/state/queries/notifications/unread'
|
import {useUnreadNotifications} from '#/state/queries/notifications/unread'
|
||||||
import {useSession} from '#/state/session'
|
import {useSession} from '#/state/session'
|
||||||
@@ -453,7 +453,6 @@ function HomeTabNavigator() {
|
|||||||
return (
|
return (
|
||||||
<HomeTab.Navigator
|
<HomeTab.Navigator
|
||||||
screenOptions={{
|
screenOptions={{
|
||||||
animation: isAndroid ? 'ios' : undefined,
|
|
||||||
animationDuration: 285,
|
animationDuration: 285,
|
||||||
gestureEnabled: true,
|
gestureEnabled: true,
|
||||||
fullScreenGestureEnabled: true,
|
fullScreenGestureEnabled: true,
|
||||||
@@ -472,7 +471,6 @@ function SearchTabNavigator() {
|
|||||||
return (
|
return (
|
||||||
<SearchTab.Navigator
|
<SearchTab.Navigator
|
||||||
screenOptions={{
|
screenOptions={{
|
||||||
animation: isAndroid ? 'ios' : undefined,
|
|
||||||
animationDuration: 285,
|
animationDuration: 285,
|
||||||
gestureEnabled: true,
|
gestureEnabled: true,
|
||||||
fullScreenGestureEnabled: true,
|
fullScreenGestureEnabled: true,
|
||||||
@@ -490,7 +488,6 @@ function NotificationsTabNavigator() {
|
|||||||
return (
|
return (
|
||||||
<NotificationsTab.Navigator
|
<NotificationsTab.Navigator
|
||||||
screenOptions={{
|
screenOptions={{
|
||||||
animation: isAndroid ? 'ios' : undefined,
|
|
||||||
animationDuration: 285,
|
animationDuration: 285,
|
||||||
gestureEnabled: true,
|
gestureEnabled: true,
|
||||||
fullScreenGestureEnabled: true,
|
fullScreenGestureEnabled: true,
|
||||||
@@ -512,7 +509,6 @@ function MyProfileTabNavigator() {
|
|||||||
return (
|
return (
|
||||||
<MyProfileTab.Navigator
|
<MyProfileTab.Navigator
|
||||||
screenOptions={{
|
screenOptions={{
|
||||||
animation: isAndroid ? 'ios' : undefined,
|
|
||||||
animationDuration: 285,
|
animationDuration: 285,
|
||||||
gestureEnabled: true,
|
gestureEnabled: true,
|
||||||
fullScreenGestureEnabled: true,
|
fullScreenGestureEnabled: true,
|
||||||
@@ -538,7 +534,6 @@ function MessagesTabNavigator() {
|
|||||||
return (
|
return (
|
||||||
<MessagesTab.Navigator
|
<MessagesTab.Navigator
|
||||||
screenOptions={{
|
screenOptions={{
|
||||||
animation: isAndroid ? 'ios' : undefined,
|
|
||||||
animationDuration: 285,
|
animationDuration: 285,
|
||||||
gestureEnabled: true,
|
gestureEnabled: true,
|
||||||
fullScreenGestureEnabled: true,
|
fullScreenGestureEnabled: true,
|
||||||
@@ -572,7 +567,6 @@ const FlatNavigator = () => {
|
|||||||
<Flat.Navigator
|
<Flat.Navigator
|
||||||
screenListeners={screenListeners}
|
screenListeners={screenListeners}
|
||||||
screenOptions={{
|
screenOptions={{
|
||||||
animation: isAndroid ? 'ios' : undefined,
|
|
||||||
animationDuration: 285,
|
animationDuration: 285,
|
||||||
gestureEnabled: true,
|
gestureEnabled: true,
|
||||||
fullScreenGestureEnabled: true,
|
fullScreenGestureEnabled: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user