Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CP-9398: Sign up and Sign back in Flow #2155

Merged
merged 12 commits into from
Dec 16, 2024
Merged

CP-9398: Sign up and Sign back in Flow #2155

merged 12 commits into from
Dec 16, 2024

Conversation

onghwan
Copy link
Contributor

@onghwan onghwan commented Dec 12, 2024

Description

Ticket: CP-9398

  • implement signup and pin/bio login flow

Screenshots/Videos

Signup Flow

Simulator.Screen.Recording.-.iPhone.15.Pro.-.2024-12-12.at.16.19.30.mp4

Pin/Bio login flow

Simulator.Screen.Recording.-.iPhone.15.Pro.-.2024-12-12.at.16.23.41.mp4

Checklist

  • I have performed a self-review of my code
  • I have verified the code works
  • I have added/updated necessary unit tests
  • I have updated the documentation

@@ -144,6 +145,9 @@ dependencies {
implementation fileTree(dir: "libs", include: ["*.jar"])
implementation 'com.google.firebase:firebase-messaging:24.0.1'

implementation 'com.github.bumptech.glide:glide:4.12.0'
kapt 'com.github.bumptech.glide:compiler:4.12.0'

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is part of expo-image configuration.

import com.bumptech.glide.module.AppGlideModule

@GlideModule
class CustomGlideModule : AppGlideModule() {}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we don't create this module, expo-image fails to load images. (source)

glassType={colorScheme === 'dark' ? 'dark' : 'light'}
/>
)
return <GlassView style={{ flex: 1 }} />
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you set the glassType, it applies a background color to the blur, which causes a color difference with the backgroundView. Therefore, we don’t use glassType for the blurView used as the background for the header and tab bar.

router.replace('/portfolio')
}
}
}, [walletState, router, canGoBackToWallet, navigation])
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here, the navigation logic corresponding to walletState is handled.

</View>
position: 'absolute'
}}
/>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I’ve set up a blank screen at the top level. The reason is that when navigation occurs due to walletState, there’s a slight delay, causing the top screen to appear very briefly (hardly noticeable on iOS and for less than 500ms on Android). It would be great to eliminate the flicker entirely, but I haven’t found a way to do that yet. In the meantime, showing the blank screen during the flicker felt the most natural.

@onghwan onghwan marked this pull request as ready for review December 12, 2024 22:15
// workaround for images not appearing
// https://github.com/DylanVann/react-native-fast-image/issues/974
fallback={true}
<Image
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we add this change given that we haven't figured out a way to fix the expo slowness issue? 👀

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we can’t fix Expo’s Android performance issues, we’ll somehow need to roll back quite a few things besides expo-image, like expo-router. Maybe we need to decide whether to quickly address the performance issues or abandon Expo before moving further.

Copy link
Contributor

@ruijialin-avalabs ruijialin-avalabs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm. 🔥

@onghwan onghwan merged commit a084b68 into main Dec 16, 2024
4 checks passed
@onghwan onghwan deleted the CP-9398 branch December 16, 2024 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants