BlueWallet/navigation/ReceiveDetailsStack.tsx
Nuno 2376abb2d3
Some checks are pending
Build Release and Upload to TestFlight (iOS) / build (push) Waiting to run
Build Release and Upload to TestFlight (iOS) / testflight-upload (push) Blocked by required conditions
BuildReleaseApk / buildReleaseApk (push) Waiting to run
BuildReleaseApk / browserstack (push) Blocked by required conditions
ref: receive screen layout (#8518)
2026-05-03 08:42:51 +02:00

43 lines
1.5 KiB
TypeScript

import React from 'react';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import { useTheme } from '../components/themes';
import loc from '../loc';
import ReceiveDetails from '../screen/receive/ReceiveDetails';
import navigationStyle, { CloseButtonPosition } from '../components/navigationStyle';
import { ReceiveDetailsStackParamList } from './ReceiveDetailsStackParamList';
import ReceiveCustomAmountSheet from '../screen/receive/ReceiveCustomAmountSheet';
import { Platform } from 'react-native';
const Stack = createNativeStackNavigator<ReceiveDetailsStackParamList>();
const ReceiveDetailsStack = () => {
const theme = useTheme();
return (
<Stack.Navigator screenOptions={{ headerShadowVisible: false }} initialRouteName="ReceiveDetails">
<Stack.Screen
name="ReceiveDetails"
component={ReceiveDetails}
options={navigationStyle({
title: loc.receive.header,
closeButtonPosition: CloseButtonPosition.Left,
headerShown: true,
})(theme)}
/>
<Stack.Screen
name="ReceiveCustomAmount"
component={ReceiveCustomAmountSheet}
options={navigationStyle({
presentation: 'formSheet',
sheetAllowedDetents: Platform.OS === 'ios' ? 'fitToContents' : [0.9],
headerTitle: loc.receive.details_setAmount,
sheetGrabberVisible: true,
closeButtonPosition: CloseButtonPosition.Right,
})(theme)}
/>
</Stack.Navigator>
);
};
export default ReceiveDetailsStack;