change icon font

This commit is contained in:
Michele Balistreri 2024-10-09 07:48:07 +02:00
parent 42348b281c
commit 2405d0dc1c
No known key found for this signature in database
GPG Key ID: E9567DA33A4F791A
7 changed files with 13 additions and 15 deletions

View File

@ -4,7 +4,7 @@ apply plugin: "com.facebook.react"
apply from: file("../../node_modules/react-native-vector-icons/fonts.gradle") apply from: file("../../node_modules/react-native-vector-icons/fonts.gradle")
project.ext.vectoricons = [ project.ext.vectoricons = [
iconFontNames: [ 'Feather.ttf', 'Ionicons.ttf' ] iconFontNames: [ 'MaterialCommunityIcons.ttf' ]
] ]
/** /**

View File

@ -60,7 +60,7 @@
<key>UIAppFonts</key> <key>UIAppFonts</key>
<array> <array>
<string>Inter.ttf</string> <string>Inter.ttf</string>
<string>Feather.ttf</string> <string>MaterialCommunityIcons.ttf</string>
</array> </array>
</dict> </dict>
</plist> </plist>

View File

@ -1,7 +1,7 @@
import React, {FC} from "react"; import React, {FC} from "react";
import {Platform, Text, View } from "react-native"; import {Platform, Text, View } from "react-native";
import Modal from "react-native-modal/dist/modal"; 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 Button from "./components/Button";
import Styles from "./Styles"; import Styles from "./Styles";
@ -18,7 +18,7 @@ const NFCModal: FC<NFCModalProps> = props => {
<View style={Styles.modalContent}> <View style={Styles.modalContent}>
<Text style={Styles.modalHeader}>Ready to Scan</Text> <Text style={Styles.modalHeader}>Ready to Scan</Text>
<View style={Styles.modalIconContainer}> <View style={Styles.modalIconContainer}>
<Icon name="smartphone" size={40} style={Styles.modalIcon}/> <Icon name="nfc-tap" size={40} style={Styles.modalIcon}/>
</View> </View>
<Text style={Styles.modalPrompt}>Tap your Keycard</Text> <Text style={Styles.modalPrompt}>Tap your Keycard</Text>
<View style={Styles.navContainer}> <View style={Styles.navContainer}>

View File

@ -1,6 +1,6 @@
import {FC } from "react"; import {FC } from "react";
import { StyleSheet, Text, TouchableOpacity, View } from "react-native"; 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 = { type ButtonProps = {
label?: string; label?: string;

View File

@ -1,6 +1,6 @@
import {FC } from "react"; import {FC } from "react";
import { StyleSheet, Text, View, FlatList, TouchableOpacity } from "react-native"; 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 = { type DialpadKeypadProps = {
dialPadContent: any[]; dialPadContent: any[];
@ -26,7 +26,7 @@ const DialpadKeypad: FC<DialpadKeypadProps> = props => {
]} ]}
> >
{item === "X" ? ( {item === "X" ? (
<Icon name="delete" size={24} color="white" /> <Icon name="backspace-outline" size={24} color="white" />
) : ( ) : (
<Text <Text
style={[{ fontSize: dialPadTextSize }, styles.dialPadText]} style={[{ fontSize: dialPadTextSize }, styles.dialPadText]}

View File

@ -1,8 +1,6 @@
import React, {FC} from "react"; import React, {FC} from "react";
import {StyleSheet, Text, TouchableOpacity, View } from "react-native"; import {StyleSheet, Text, TouchableOpacity, View } from "react-native";
import Modal from "react-native-modal/dist/modal"; import Modal from "react-native-modal/dist/modal";
import Styles from "../Styles";
import Button from "./Button";
type SubMenuProps = { type SubMenuProps = {
isVisible: boolean; isVisible: boolean;

View File

@ -9,7 +9,7 @@ import { sha256 } from "@noble/hashes/sha256";
import ReceiveModal from "../../ReceiveModal"; import ReceiveModal from "../../ReceiveModal";
import Dialpad from "../Dialpad"; import Dialpad from "../Dialpad";
import Styles from "../../Styles"; import Styles from "../../Styles";
import Icon from 'react-native-vector-icons/Feather'; import Icon from 'react-native-vector-icons/MaterialCommunityIcons';
import SubMenuModal from "../SubMenuModal"; import SubMenuModal from "../SubMenuModal";
enum HomeSteps { enum HomeSteps {
@ -102,12 +102,11 @@ const HomeScreen: FC<HomeScreenProps> = props => {
<View> <View>
<View style={styles.homeTextContainer}> <View style={styles.homeTextContainer}>
<Text style={styles.homeHeading}>My Operators</Text> <Text style={styles.homeHeading}>My Operators</Text>
<TouchableOpacity style={styles.subMenu} onPress={openSubMenu}><Icon name="more-horizontal" size={24} color="white" /></TouchableOpacity> <TouchableOpacity style={styles.subMenu} onPress={openSubMenu}><Icon name="dots-horizontal" size={24} color="white" /></TouchableOpacity>
</View> </View>
<SubMenuModal isVisible={isMenuVisible} onFactoryReset={onFactoryResetFunc} onLogout={onCancelFunc} onChangeFunc={() => {setMenuVisible(false)}}/> <SubMenuModal isVisible={isMenuVisible} onFactoryReset={onFactoryResetFunc} onLogout={onCancelFunc} onChangeFunc={() => {setMenuVisible(false)}}/>
<Button label="Scan" disabled={false} onChangeFunc={() => setStep(HomeSteps.ScanCode)}></Button> <Button label="Scan" disabled={false} onChangeFunc={() => setStep(HomeSteps.ScanCode)}></Button>
<Button label="Receive" disabled={false} onChangeFunc={() => setReceiveVisible(true)}></Button> <Button label="Receive" disabled={false} onChangeFunc={() => setReceiveVisible(true)}></Button>
<Button label="Cancel" disabled={false} onChangeFunc={onCancelFunc}></Button>
<ReceiveModal address={walletAddress()} isVisible={receiveVisible} onChangeFunc={() => {setReceiveVisible(false)} } /> <ReceiveModal address={walletAddress()} isVisible={receiveVisible} onChangeFunc={() => {setReceiveVisible(false)} } />
</View> </View>
} }
@ -122,11 +121,11 @@ const HomeScreen: FC<HomeScreenProps> = props => {
const styles = StyleSheet.create({ const styles = StyleSheet.create({
homeTextContainer: { homeTextContainer: {
paddingTop: 45, paddingVertical: 40,
flexDirection: 'row', flexDirection: 'row',
width: '95%', width: '95%',
marginLeft: '2.5%', marginLeft: '2.5%',
marginRight: '2.5%' marginRight: '2.5%',
}, },
homeHeading: { homeHeading: {
textAlign: 'center', textAlign: 'center',
@ -141,7 +140,8 @@ const styles = StyleSheet.create({
subMenu: { subMenu: {
flexGrow: 0, flexGrow: 0,
flexShrink: 1, flexShrink: 1,
flexBasis: 24 flexBasis: 24,
justifyContent: 'center'
}, },
prompt: { prompt: {
textAlign: 'center', textAlign: 'center',