From 2405d0dc1c353621aaea353d864f69a0c6f8663e Mon Sep 17 00:00:00 2001 From: Michele Balistreri Date: Wed, 9 Oct 2024 07:48:07 +0200 Subject: [PATCH] change icon font --- android/app/build.gradle | 2 +- ios/keycardExit/Info.plist | 2 +- src/NFCModal.tsx | 4 ++-- src/components/Button.tsx | 2 +- src/components/DialpadKeypad.tsx | 4 ++-- src/components/SubMenuModal.tsx | 2 -- src/components/steps/HomeScreen.tsx | 12 ++++++------ 7 files changed, 13 insertions(+), 15 deletions(-) diff --git a/android/app/build.gradle b/android/app/build.gradle index 0c86c48..d68be79 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -4,7 +4,7 @@ apply plugin: "com.facebook.react" apply from: file("../../node_modules/react-native-vector-icons/fonts.gradle") project.ext.vectoricons = [ - iconFontNames: [ 'Feather.ttf', 'Ionicons.ttf' ] + iconFontNames: [ 'MaterialCommunityIcons.ttf' ] ] /** diff --git a/ios/keycardExit/Info.plist b/ios/keycardExit/Info.plist index 7039983..a17b396 100644 --- a/ios/keycardExit/Info.plist +++ b/ios/keycardExit/Info.plist @@ -60,7 +60,7 @@ UIAppFonts Inter.ttf - Feather.ttf + MaterialCommunityIcons.ttf diff --git a/src/NFCModal.tsx b/src/NFCModal.tsx index 0199def..d0709e8 100644 --- a/src/NFCModal.tsx +++ b/src/NFCModal.tsx @@ -1,7 +1,7 @@ import React, {FC} from "react"; import {Platform, Text, View } from "react-native"; import Modal from "react-native-modal/dist/modal"; -import Icon from 'react-native-vector-icons/Feather'; +import Icon from 'react-native-vector-icons/MaterialCommunityIcons'; import Button from "./components/Button"; import Styles from "./Styles"; @@ -18,7 +18,7 @@ const NFCModal: FC = props => { Ready to Scan - + Tap your Keycard diff --git a/src/components/Button.tsx b/src/components/Button.tsx index 5d8694f..0c4ef80 100644 --- a/src/components/Button.tsx +++ b/src/components/Button.tsx @@ -1,6 +1,6 @@ import {FC } from "react"; import { StyleSheet, Text, TouchableOpacity, View } from "react-native"; -import Icon from 'react-native-vector-icons/Feather'; +import Icon from 'react-native-vector-icons/MaterialCommunityIcons'; type ButtonProps = { label?: string; diff --git a/src/components/DialpadKeypad.tsx b/src/components/DialpadKeypad.tsx index 0f2a7bf..15f363d 100644 --- a/src/components/DialpadKeypad.tsx +++ b/src/components/DialpadKeypad.tsx @@ -1,6 +1,6 @@ import {FC } from "react"; import { StyleSheet, Text, View, FlatList, TouchableOpacity } from "react-native"; -import Icon from 'react-native-vector-icons/Feather'; +import Icon from 'react-native-vector-icons/MaterialCommunityIcons'; type DialpadKeypadProps = { dialPadContent: any[]; @@ -26,7 +26,7 @@ const DialpadKeypad: FC = props => { ]} > {item === "X" ? ( - + ) : ( = props => { My Operators - + {setMenuVisible(false)}}/> - {setReceiveVisible(false)} } /> } @@ -122,11 +121,11 @@ const HomeScreen: FC = props => { const styles = StyleSheet.create({ homeTextContainer: { - paddingTop: 45, + paddingVertical: 40, flexDirection: 'row', width: '95%', marginLeft: '2.5%', - marginRight: '2.5%' + marginRight: '2.5%', }, homeHeading: { textAlign: 'center', @@ -141,7 +140,8 @@ const styles = StyleSheet.create({ subMenu: { flexGrow: 0, flexShrink: 1, - flexBasis: 24 + flexBasis: 24, + justifyContent: 'center' }, prompt: { textAlign: 'center',