NativeBase 的 "Icon and Expanded Icon Style" 未显示
NativeBase's "Icon and Expanded Icon Style" not showing
我是新手...我在安装时遗漏了一些东西
我的问题是为什么使用来自 nativebase.io 的简单代码复制和粘贴没有显示图标
所有功能的构建都是成功的,但只有东西是
1.左上 "icon with Header content st.." 文本未显示
2. 打开和关闭图标的右下角下拉菜单没有显示,看起来像是路径中缺少图像或图标
"dependencies": {
"@react-native-community/masked-view": "^0.1.7",
"@react-navigation/native": "^5.1.1",
"@react-navigation/stack": "^5.2.3",
"native-base": "^2.13.12",
"react": "16.9.0",
"react-native": "0.61.5",
"react-native-gesture-handler": "^1.6.0",
"react-native-reanimated": "^1.7.0",
"react-native-safe-area-context": "^0.7.3",
"react-native-screens": "^2.3.0",
"react-navigation-stack": "^2.3.3"
},
enter image description here
import React, { Component } from "react";
import { Container, Header, Content, Accordion } from "native-base";
const dataArray = [
{ title: "First Element", content: "Lorem ipsum dolor sit amet" },
{ title: "Second Element", content: "Lorem ipsum dolor sit amet" },
{ title: "Third Element", content: "Lorem ipsum dolor sit amet" }
];
export default class AccordionHeaderContentStyleExample extends Component {
render() {
return (
<Container>
<Header />
<Content padder>
<Accordion
dataArray={dataArray}
headerStyle={{ backgroundColor: "#b7daf8" }}
contentStyle={{ backgroundColor: "#ddecf8" }}
/>
</Content>
</Container>
);
}
}
Can you try to add this code to `app/build.gradle` and uninstall the app from phone and reinstall again
apply from: "../../node_modules/react-native-vector-icons/fonts.gradle"
谢谢,现在它可以工作了,但只有底部图标 + & -(顶部图标和文字没有)
我是新手...我在安装时遗漏了一些东西
我的问题是为什么使用来自 nativebase.io 的简单代码复制和粘贴没有显示图标 所有功能的构建都是成功的,但只有东西是
1.左上 "icon with Header content st.." 文本未显示 2. 打开和关闭图标的右下角下拉菜单没有显示,看起来像是路径中缺少图像或图标
"dependencies": {
"@react-native-community/masked-view": "^0.1.7",
"@react-navigation/native": "^5.1.1",
"@react-navigation/stack": "^5.2.3",
"native-base": "^2.13.12",
"react": "16.9.0",
"react-native": "0.61.5",
"react-native-gesture-handler": "^1.6.0",
"react-native-reanimated": "^1.7.0",
"react-native-safe-area-context": "^0.7.3",
"react-native-screens": "^2.3.0",
"react-navigation-stack": "^2.3.3"
},
enter image description here
import React, { Component } from "react";
import { Container, Header, Content, Accordion } from "native-base";
const dataArray = [
{ title: "First Element", content: "Lorem ipsum dolor sit amet" },
{ title: "Second Element", content: "Lorem ipsum dolor sit amet" },
{ title: "Third Element", content: "Lorem ipsum dolor sit amet" }
];
export default class AccordionHeaderContentStyleExample extends Component {
render() {
return (
<Container>
<Header />
<Content padder>
<Accordion
dataArray={dataArray}
headerStyle={{ backgroundColor: "#b7daf8" }}
contentStyle={{ backgroundColor: "#ddecf8" }}
/>
</Content>
</Container>
);
}
}
Can you try to add this code to `app/build.gradle` and uninstall the app from phone and reinstall again
apply from: "../../node_modules/react-native-vector-icons/fonts.gradle"
谢谢,现在它可以工作了,但只有底部图标 + & -(顶部图标和文字没有)