这是我的错误: Build system information
error: Multiple commands produce '/Users/tanhaeirad/Project/Rahanj/RezasPortal/portalapp/ios/build/Build/Products/Debug-iphonesimulator/portalapp.app/AntDesign.ttf':
1) Target 'portalapp' (project 'portalapp') has copy command from '/Use
你好,我的AntDesign图标出现在屏幕上有问题,唯一弹出的东西只是一个X,我使用的是react本机矢量图标/AntDesign。如果有人能告诉我如何让我的图标出现在我的屏幕上,那将是非常感谢的!!
import React, { useContext, useRef, useState } from "react"; // we are importing the react library and the useContext hook from react and we are importing the Context from the global context
我刚刚开始了一个新的反应--从零开始的原生项目,添加了get -本机-矢量-图标,但是当我试图链接它时,我得到了以下信息,我不知道为什么会发生这种情况,我什么都没改变,这是一个clen项目。
error Something went wrong while linking. Error: ENOENT: no such file or directory, copyfile 'PROJECTFOLDER/node_modules/react-native-vector-icons/Fonts/AntDesign.ttf' -> 'D:\Codes\ReactNat
我使用的是AntDesign组件Anchor和React路由器。出现了一个错误
标识符“Link”已经声明(77:8)
据我所知,链接已经声明了两次,一次用于React路由器,另一次用于AntDesign的Anchor。有办法绕过这件事吗?我两者都需要。React路由器用于路由,AntDesign的Anchor用于跳到页面上的不同部分。
下面是设置:
import React from 'react'
import { Link } from 'react-router-dom';
import Anchor from 'antd/es/anchor
我正面临着以下问题。
Error: Unable to resolve module `react-native-vector-icons/AntDesign` from `node_modules/react-native-elements/src/helpers/getIconType.js`: react-native-vector-icons/AntDesign could not be found within the project.
Package.json
{
"name": "GeoLocation",
"version"
我使用这个库作为我的应用程序简介:
这是我的密码:
import React from 'react';
import { StyleSheet, View, Text } from 'react-native';
import {Container} from 'native-base';
import AppIntroSlider from 'react-native-app-intro-slider';
import { AntDesign } from '../../styles/variables/Icons
我正在使用bare react原生测试驱动开发,并使用包jest和酶。我为UI组件安装了NativeBase。当我使用来自NativeBase的图标时,我得到了错误
FAIL src/screens/Welcome/Welcome.test.js
● Test suite failed to run
/Users/../node_modules/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/AntDesign.ttf:1
({"Object.<anonymous>":functio
import * as React from "react";
import { SafeAreaView, useWindowDimensions } from "react-native";
import { createDrawerNavigator } from '@react-navigation/drawer';
import { NavigationContainer } from "@react-navigation/native";
import { RegistrationScreen } from