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
43 lines
1.5 KiB
TypeScript
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;
|