diff --git a/android/app/build.gradle b/android/app/build.gradle index e9b5b8f7..b399eae4 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -95,7 +95,7 @@ android { applicationId "com.minibits_wallet" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion - versionCode 58033 + versionCode 58034 versionName "0.2.2" } diff --git a/package.json b/package.json index c64df64b..ea2a2416 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "minibits_wallet", - "version": "0.2.2-beta.4", + "version": "0.2.2-beta.5", "private": true, "scripts": { "android:clean": "cd android && ./gradlew clean", diff --git a/src/components/Card.tsx b/src/components/Card.tsx index d356cef9..5ff38a1d 100644 --- a/src/components/Card.tsx +++ b/src/components/Card.tsx @@ -308,7 +308,7 @@ export const Card = function (props: CardProps) { const $containerBase: ViewStyle = { borderRadius: spacing.medium, paddingHorizontal: spacing.medium, - paddingVertical: spacing.small, + paddingVertical: spacing.extraSmall, // borderWidth: 1, shadowColor: colors.palette.neutral600, shadowOffset: { width: 0, height: 10 }, diff --git a/src/components/ListItem.tsx b/src/components/ListItem.tsx index 792bd60d..c00ed2f5 100644 --- a/src/components/ListItem.tsx +++ b/src/components/ListItem.tsx @@ -135,8 +135,7 @@ interface ListItemActionProps { * * - [Documentation and Examples](https://github.com/infinitered/ignite/blob/master/docs/Components-ListItem.md) */ -export const ListItem = function (props: ListItemProps) { - const colorScheme = useColorScheme() +export const ListItem = function (props: ListItemProps) { const { bottomSeparator, @@ -179,7 +178,7 @@ export const ListItem = function (props: ListItemProps) { const $containerStyles = [ topSeparator && $separatorTop, { borderTopColor: separatorColor }, bottomSeparator && $separatorBottom, { borderBottomColor: separatorColor }, - $containerStyleOverride, {paddingVertical: spacing.tiny - 2}, + $containerStyleOverride, {paddingVertical: spacing.tiny}, ] const $touchableStyles = [$touchableStyle, { minHeight: height }, style] diff --git a/src/screens/DeveloperScreen.tsx b/src/screens/DeveloperScreen.tsx index dcca2faf..96c1200c 100644 --- a/src/screens/DeveloperScreen.tsx +++ b/src/screens/DeveloperScreen.tsx @@ -315,7 +315,7 @@ Sentry id: ${walletProfileStore.walletId} - + { + headerHeight.value = spacing.screenHeight * 0.08 + isVisible.value = false + } + + const expandHeader = () => { + headerHeight.value = spacing.screenHeight * 0.20 + isVisible.value = true } const onDelete = function (status: TransactionStatus) { @@ -210,6 +216,12 @@ export const TranHistoryScreen = observer(function TranHistoryScreen({ route }: setError(e) } + const animatedHeader = useAnimatedStyle(() => { + return { + height: withTiming(headerHeight.value, { duration: 300 }), + // opacity: withTiming(isVisible.value ? 1 : 0, { duration: 300 }), + } + }) const headerBg = useThemeColor('header') const iconColor = useThemeColor('textDim') const activeIconColor = useThemeColor('button') @@ -225,9 +237,9 @@ export const TranHistoryScreen = observer(function TranHistoryScreen({ route }: return ( - + - + {sections.length > 0 && ( - + {!showPendingOnly && isAll || showPendingOnly && pendingIsAll ? ( ) : ( @@ -318,8 +330,8 @@ export const TranHistoryScreen = observer(function TranHistoryScreen({ route }: )} } - onScrollBeginDrag={collapseHeader} - onStartReached={expandHeader} + onEndReached={collapseHeader} + onStartReached={expandHeader} stickySectionHeadersEnabled={false} keyExtractor={(item, index) => String(item.id) as string} ListEmptyComponent={ @@ -333,7 +345,7 @@ export const TranHistoryScreen = observer(function TranHistoryScreen({ route }: style={$card} /> } - style={{maxHeight: spacing.screenHeight * 0.6}} + style={{maxHeight: spacing.screenHeight * 0.62}} /> {isLoading && }