Comments (6)
热更新无法解决这个问题吗?
节日图片是通过什么方式下发?
from hybrid-navigation.
热更新可以但是我想通过接口去获取图片地址
from hybrid-navigation.
this.props.garden.replaceTabIcon(index, icon, inactiveIcon)
提供这样的 api 能满足你的需求吗?
from hybrid-navigation.
可以的 这个icon可以是require的image也可以是url或是iconfont的name的吧?
from hybrid-navigation.
和在 tabItem 可配项中的 icon 一样,是一个包含 uri 的对象
from hybrid-navigation.
已添加 garden.replaceTabIcon(index, icon, inactiveIcon)
可以在 Options 这个 tab 的 最后一个条目 replace tab icon 体验
replaceTabIcon() {
this.props.garden.replaceTabIcon(
1,
{ uri: 'blue_solid', scale: PixelRatio.get() }
// { uri: 'red_ring', scale: PixelRatio.get() }
);
}
uri 可以是 file:// 这样的格式,指向 icon 的本地缓存
建议先把 icon 缓存到本地,然后再调用此方法
from hybrid-navigation.
Related Issues (20)
- iOS全局设置barButtonItemTextSize,字体大小修改无效 HOT 1
- android 监听 BackHandler 虚拟键返回无效 HOT 3
- 使用了 react-native-vector-icons 中的icon HOT 2
- Dynamic Styles HOT 12
- Navigator.setInterceptor((action, from, to, extras), to字段返回undefined HOT 2
- 请问如何改变 showModal 默认的背景透明度? HOT 4
- npm install后在ios文件夹中未发现podfile。 HOT 1
- Reload后会初始化两次Stack的screen HOT 3
- [Android] 隐藏TopBar并设置titleItem会导致crash
- ReactRegistry.registerComponent可以懒注册吗 HOT 2
- 能否增加一个已有的原生项目相关的例子。 HOT 4
- 建议允许显示多个modal并可关闭指定Modal HOT 7
- navigationBarHiddenAndroid 参数在打开Modal时会发生抖动 HOT 10
- 建议: 能不能出个Demo 能用的? 按照教程来搞完全报错 HOT 4
- 大佬有联系方式吗
- 教程中android配置去掉ReactActivity怎么跑起来的? HOT 1
- app启动闪退 HOT 7
- navigationBarHiddenAndroid 在Android 7上不生效 HOT 1
- react-native-safe-area-context问题 HOT 4
- when will support New Architecture HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hybrid-navigation.