make modal navigation headers the same

This commit is contained in:
ppc
2025-01-12 20:06:55 +00:00
parent a4d4e03eb9
commit d52757f134
2 changed files with 1 additions and 12 deletions
-11
View File
@@ -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};
+1 -1
View File
@@ -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();