Skip to content

Commit

Permalink
fix: login/signup buttons do not show up (#9326)
Browse files Browse the repository at this point in the history
* fix: onboarding buttons hidden

* increment native code version

* make imported json types less strict

---------

Co-authored-by: brainbicycle <[email protected]>
  • Loading branch information
gkartalis and brainbicycle committed Sep 26, 2023
1 parent d06da13 commit 37a1c35
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 24 deletions.
2 changes: 1 addition & 1 deletion app.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"appName": "eigen",
"version": "8.21.0",
"version": "8.22.0",
"isAndroidBeta": false
}
41 changes: 18 additions & 23 deletions src/app/Scenes/Onboarding/OnboardingWelcome.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ import {
} from "app/NativeModules/ArtsyNativeModule"
import { useScreenDimensions } from "app/utils/hooks"
import backgroundImage from "images/WelcomeImage.webp"
import { MotiView } from "moti"
import { useEffect } from "react"
import { Dimensions, Image, Platform } from "react-native"
import LinearGradient from "react-native-linear-gradient"
import Animated, {
useAnimatedStyle,
useSharedValue,
withDelay,
withSequence,
withTiming,
} from "react-native-reanimated"
Expand All @@ -38,16 +38,6 @@ export const OnboardingWelcome: React.FC<OnboardingWelcomeProps> = ({ navigation
// the entire screen including drawing below the navigation bar
const { height: screenHeight } = Dimensions.get("screen")

// text and logo appearance
const opacity = useSharedValue(0)
const appearAnim = useAnimatedStyle(() => {
"worklet"
return { opacity: opacity.value }
})
useEffect(() => {
opacity.value = withDelay(100, withTiming(1))
}, [])

// background sliding
const translateX = useSharedValue(0)
const slideAnim = useAnimatedStyle(() => {
Expand Down Expand Up @@ -129,19 +119,24 @@ export const OnboardingWelcome: React.FC<OnboardingWelcomeProps> = ({ navigation
<LegacyScreen.Body>
<Spacer y={1} />

<Animated.View style={[{ alignItems: "center", width: "100%" }, appearAnim]}>
<MotiView
style={{ alignItems: "center", width: "100%" }}
from={{ opacity: 0 }}
animate={{ opacity: 1 }}
transition={{ type: "timing", duration: 1500 }}
>
<ArtsyLogoWhiteIcon height={25} width={75} />
</Animated.View>
</MotiView>

<Animated.View
style={[
{
flex: 1,
paddingTop: space(2),
justifyContent: "flex-end",
},
appearAnim,
]}
<MotiView
style={{
flex: 1,
paddingTop: space(2),
justifyContent: "flex-end",
}}
from={{ opacity: 0 }}
animate={{ opacity: 1 }}
transition={{ type: "timing", duration: 1500 }}
>
<Text variant="xl" color="white">
Collect Art by the World’s Leading Artists
Expand Down Expand Up @@ -192,7 +187,7 @@ export const OnboardingWelcome: React.FC<OnboardingWelcomeProps> = ({ navigation
</Text>

<LegacyScreen.SafeBottomPadding />
</Animated.View>
</MotiView>
</LegacyScreen.Body>
</LegacyScreen>
)
Expand Down

0 comments on commit 37a1c35

Please sign in to comment.