mirror of
https://gitea.tendokyu.moe/ppc/amnet.git
synced 2026-10-07 06:08:00 +03:00
make modal navigation headers the same
This commit is contained in:
@@ -38,17 +38,6 @@ export default function CardAddModal({navigation, route}) {
|
||||
}
|
||||
}, [realm]);
|
||||
|
||||
// header effects
|
||||
if (Platform.OS === 'ios') {
|
||||
useLayoutEffect(() => {
|
||||
navigation.setOptions({
|
||||
headerLeft: () => <TouchableOpacity onPress={() => navigation.goBack()}>
|
||||
<Paragraph style={modalStyles.headerText}>Back</Paragraph>
|
||||
</TouchableOpacity>,
|
||||
});
|
||||
}, [navigation, modalStyles]);
|
||||
}
|
||||
|
||||
useLayoutEffect(() => {
|
||||
const canSave = cardName.length && cardNumber.length === 20;
|
||||
const themeOptions = canSave ? modalStyles.headerText : {color: theme.colors.outline};
|
||||
|
||||
@@ -50,7 +50,7 @@ export async function felicaCardReadAsync(): Promise<ICCard | null> {
|
||||
await NfcManager.requestTechnology(NfcTech.FelicaIOS, {
|
||||
isReaderModeEnabled: true,
|
||||
invalidateAfterFirstRead: false,
|
||||
alertMessage: "Place an Amusement or Transport IC card on your device."
|
||||
alertMessage: "Place an Amusement IC or Transport card on your device."
|
||||
});
|
||||
|
||||
const tag = await NfcManager.getTag();
|
||||
|
||||
Reference in New Issue
Block a user