React
玲~~
这个作者很懒,什么都没留下…
展开
-
React-Native/Android 显示本机图片/设备内存文件目录中的图片
想在React-Native 项目中,用Image标签显示本地图片,我的真机测试中,手机的根目录有image文件夹,image文件夹有名字为1.jpg的图片,想要显示该图片,但是路径如下却显示不了。<Image style={{width: 400, height: 200}} source={{uri: `file:///image/1.jpg`}}/>解决办法路径加上"storage/emulated/0/"import { Image} from "react-n原创 2021-04-24 13:28:01 · 828 阅读 · 0 评论 -
React 传参 报错does not exist on type ‘Location<unknown>‘. TS2339和‘PropsWithChildren<Props>‘. TS2339
跳转页面传参报错1、Property 'param1' does not exist on type 'Location'. TS2339解决办法2、Property 'location' does not exist on type 'PropsWithChildren'. TS2339解决办法1、Property ‘param1’ does not exist on type ‘Location’. TS2339原因:react识别不了Location跳转代码let path = {原创 2020-10-26 10:37:48 · 2979 阅读 · 0 评论