diff --git a/apps/wallet-mobile/src/components/ScrollView/ScrollView.tsx b/apps/wallet-mobile/src/components/ScrollView/ScrollView.tsx index 8efd33d3a2..ca3a65d988 100644 --- a/apps/wallet-mobile/src/components/ScrollView/ScrollView.tsx +++ b/apps/wallet-mobile/src/components/ScrollView/ScrollView.tsx @@ -14,12 +14,12 @@ export const ScrollView = ({ return ( { - if (!onScrollBarChange) return + if (onScrollBarChange) { + const {height} = event.nativeEvent.layout - const {height} = event.nativeEvent.layout - - const shouldChange = wrapperHeight > Math.trunc(height) - onScrollBarChange(shouldChange) + const shouldChange = wrapperHeight > Math.trunc(height) + onScrollBarChange(shouldChange) + } props.onLayout?.(event) }} {...props} diff --git a/apps/wallet-mobile/src/features/Settings/ManageCollateral/ConfirmTx/ConfirmTxScreen.tsx b/apps/wallet-mobile/src/features/Settings/ManageCollateral/ConfirmTx/ConfirmTxScreen.tsx index 5b62a5b60f..5f67b91ad7 100644 --- a/apps/wallet-mobile/src/features/Settings/ManageCollateral/ConfirmTx/ConfirmTxScreen.tsx +++ b/apps/wallet-mobile/src/features/Settings/ManageCollateral/ConfirmTx/ConfirmTxScreen.tsx @@ -1,7 +1,7 @@ /* eslint-disable @typescript-eslint/no-explicit-any */ import React, {useEffect} from 'react' import {useIntl} from 'react-intl' -import {ScrollView, StyleSheet, View, ViewProps} from 'react-native' +import {Platform, ScrollView, StyleSheet, View, ViewProps} from 'react-native' import {SafeAreaView} from 'react-native-safe-area-context' import {KeyboardAvoidingView, Spacer, ValidatedTextInput} from '../../../../components' @@ -104,7 +104,7 @@ export const ConfirmTxScreen = () => { ) } -const Actions = (props: ViewProps) => +const Actions = (props: ViewProps) => const styles = StyleSheet.create({ root: { @@ -115,6 +115,11 @@ const styles = StyleSheet.create({ flex: 1, paddingHorizontal: 16, }, + actions: { + paddingTop: 16, + paddingHorizontal: 16, + paddingBottom: Platform.OS === 'ios' ? 25 : 16, + }, }) const useStrings = () => {