Skip to content

Commit

Permalink
fix: fix broken animation SWA flow Android (#11051)
Browse files Browse the repository at this point in the history
fix: do not set transitionSpec for android
  • Loading branch information
dariakoko authored and gkartalis committed Nov 4, 2024
1 parent 1f6ecf9 commit ca78a83
Showing 1 changed file with 18 additions and 15 deletions.
33 changes: 18 additions & 15 deletions src/app/Scenes/SellWithArtsy/ArtworkForm/SubmitArtworkForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ import { fetchUserContactInformation } from "app/Scenes/SellWithArtsy/SubmitArtw
import { ArtsyKeyboardAvoidingView } from "app/utils/ArtsyKeyboardAvoidingView"
import { FormikProvider, useFormik } from "formik"
import { useEffect } from "react"
import { Keyboard } from "react-native"
import { Keyboard, Platform } from "react-native"
import { isTablet as getIsTablet } from "react-native-device-info"

export type SubmitArtworkStackNavigation = {
Expand Down Expand Up @@ -181,20 +181,23 @@ const SubmitArtworkFormContent: React.FC<SubmitArtworkProps> = ({
}
: {}),
},
transitionSpec: {
open: {
animation: "timing",
config: {
duration: 300,
},
},
close: {
animation: "timing",
config: {
duration: 300,
},
},
},
transitionSpec:
Platform.OS === "ios"
? {
open: {
animation: "timing",
config: {
duration: 300,
},
},
close: {
animation: "timing",
config: {
duration: 300,
},
},
}
: undefined,
cardStyleInterpolator: ({ current, next }) => {
const opacity = current.progress.interpolate({
inputRange: [0, 1],
Expand Down

0 comments on commit ca78a83

Please sign in to comment.