blog's People
Forkers
snakeliwei yemaiti wh00527 jingdq enze0923 liuxiaoyue coding12 dieface walter211 344303947 hero2000 aidenzou wangmingjob ganvinalix tgf229 leapar jeakey ethan0x backlighting-neo fenglvming abbleto chenruimin wwzhong1 jtangxian xuzhiwei monkeytest15 jsouliang willyzheng be-better zanderzhang fklam unchengcheng carozhu liuchungui dandan2009 makebetterme binaryartists security111588 eastmacro droison sunflowergj alleniver suntiger035 andelsmoke learnfork zhouzefei jixuqianxing mindedcoder yanyanlun cjk035 qtdhpdc hawods taoqianbao namistudio kingctan gaopeng2016 islandone yelingyun2012 songzhipeng dekins ywqian ppproxy linafei yangjiqiao86 rush397 nidao66 geneking liuganghao shiyingxyl jaylone vanilla110 wangsiyuan0215 manbali liangshan-li jsfu hi-guy idearbank shangguanmr zhangyuanyuan qxj006 wuce7758 rimpression allenzerg001 tianxiaozz2012 fanwenfeng alonesingingstar shuwang-wu zhangwh2015 crayonn mahaaoo lmh1986 varrant fanyingkai jiubadao magic-coder lilywei999 gerow-x wquzhongrensan gjson baiachenblog's Issues
android 多RN模块 缓存问题
代码不全,不发准确指导
代码不全,无法准确指导~~
ReactNative安卓首屏白屏优化问题
你好,看了下『ReactNative安卓首屏白屏优化』,有几个问题需要需要了解下。
1.如果提前初始化ReactRootView,那么ReactRootView里面的Context不会有内存泄露问题吗?
2.如果从缓存中加载ReactRootView,再次进入的时候,虽然可以加快速度,但是界面内容确实固定的,不能刷新的?
白屏优化AbsRnInfo这个文件在哪里啊
AbsRnInfo 这个文件呢
增量更新的图片怎么处理
rt 谢谢谢西
热更新请教
AbsRnInfo在哪个目录下
使用ApplicationContext导致Dialog弹出错误
E/unknown:React: Exception in native call from JS
android.view.WindowManager$BadTokenException: Unable to add window -- token null is not for an application
这是使用Modal组件出现的问题,同样的问题还出现在Picker
如果不使用ApplicationContext来创建ReactRootView,那么该怎么办呢
RN的界面编译至Native后是原生的一个ViewController or Activity 么?
我之前的认为是这样的,比如android中,整个RN的应用就是一个activity来呈现的,RN的所有页面都近似于平铺在一个绑定在此activity的布局中,然后navigator.push 只是选择让哪个部分放到屏幕中显示,同样ios中也是一个viewcontroller~~我不确定我这样理解是否正确,难道编译过去会生成多个activity吗?
ReactNative增量升级方案
增量升级时,是否需要对RN版本做区分呢?
我们的项目开发一段时间了,遇到两次比较大的问题,都是RN版本升级导致的。
对react-native-tabbar的使用过程中的一些疑问(父组件setState不会触发render)?!
不知道楼主是否用过react-native-tabbar组件,现有些疑问,特此请教(如果是react-native-tabbar的问题本应提到react-native-tabbar的问题列表中,但怀疑也许是自己理解不够....)。
组件中部分方法:
constructor(props, context) {
super(props, context);
this.state = {
name: '小怪兽'
}
}
componentDidMount() {
setTimeout(() => {
this.setState({name: '凹凸曼'})
},500)
}
父组件:
/** 使用react-native-tabbar */
render() {
return (
<Tabbar ref="myTabbar" barColor={'rgb(0, 0, 0)'}>
<Tab name="FirstTab">
<IconWithBar label='FirstTab' onInactiveColor={'white'} onActiveColor={'red'} type={glypy.Match} ontype={glypy.MatchOn} from={'tabbaricon'}/>
<RawContent>
<View>
<B {...this.state}/>
</View>
</RawContent>
</Tab>
</Tabbar>
);
}
/** 不使用react-native-tabbar*/
render() {
return (
<View>
<B {...this.state}/>
</View>
);
}
/** B组件*/
render() {
return (
<View>
<Text>Component BBBB: {this.props.name}</Text>
</View>
);
}
在使用react-native-tabbar 的情况中,B组件中的‘Component BBBB: {this.props.name}’中内容不会发生改变,而不使用react-native-tabbar B中内容是可以改变的。现能怀疑的问题就是react-native-tabbar组件内部的某些实现过程阻断了state改变重新render的过程。所以想请教下,什么情况下会类似于这种无法更新的情况。
Android 首页白屏
现在用的react native 0.55.4 没有再用ReactActivity 这样的 官网也没在用 ,那么请教这种情况如何优化?
RNKeys 在那?
[评论区]弱特征广告方案
WebView 记住密码提示
Hello,遇到一个问题请教下。
使用情景,WebView中嵌入了一个登陆页面。在使用中,部分Android系统(android <=4.3)会提示是否记住密码,而我不想让它有这个提示。我已经尝试过使用domStorageEnabled属性,但还是会提示,请问你有遇到过或者有什么解决思路吗?!谢谢!
关于博客中的疑问
RNCacheViewManager.init((Activity) context, new RnInfo(moduleName, launchOptions)); 这个注册在什么文件里呢?
使用了之后感觉效果不对
我用的是 RN 0.20 + Android
奇怪的是使用了之后白屏时间反而变长了,而且白屏时间是在 setContentView 时发生的。
比较下来感觉不如直接使用第三方的 react-native-splash-screen 那个方案好。但是从理论上又无法解释。有别人有类似的问题么?
Navigator 属性initialRouteStack的使用
楼主,你好,我看了你的Navigator的设计与实现 ,有一点不明白 这个initialRouteStack属性具体怎么用啊,我按照你的方式试了试,好像不行估计我理解不够 ,能够详细讲解一下 或者给个DEMO呢
我现在想实现的就是当原生不同的Activity 有多个入口要跳转到RN界面 此时我该怎么实现呢?
我刚接触RN 有些还是很蒙 ,希望楼主给以解惑 万分感谢
在什么时候init
你好,看了你的ReactNative安卓首屏白屏优化文章,受益匪浅,有两个问题:
1、初始化需要传输一个activity,如果启动页就是RN界面,何时初始化
2、如果需要多个ReactActivity之间进行调转,如何重用缓存的RootReactView.
谢谢解答。
缺一个文件啊
AbsRnInfo 就是这个文件的 源码啊
android 打到assets文件夹安装后是不能修改的,如何做到增量升级?
ReactNative安卓首屏白屏优化
Text 显示不出来。。。其他正常
有关增量升级方案中图片更新问题
想请教下,图片更新的思路是什么?
js更新的话,直接加载App目录中Documents或其他目录文件就行,但是图片该怎么搞?
[评论区]前端和开闭原则
请问setModuleName(String moduleName)此方法在何时调用?
如题,setModuleName(String moduleName)这个方法是在什么时候调用的,这里提供这个方法的作用是什么呢
jsbundle,没必要进行比对字符串,进行升级
试了下,题主给的 google的工具,diff出来的 patch,要比jsbundle 本身大很多.bundle文件600k左右,生成的patch 1.3M左右;所以,或许没有必要单独处理文本文件的增量升级;即,直接对jsbundle ,依据md5判断即可;
在业务代码里面如何获取navigator的引用呢?
在业务代码里面如何获取navigator的引用呢?
比如我在初始化的代码如下:
<CLNavigator initialRoute={{ name:"home", page:() => <Home/> }} />
那我如何在Home组建中获取到navigator得引用呢?
运行react-native run-Android 安装在手机上的时候,打开报错
Overlay permissions needs to be granted in order for react native apps to run in dev mode,还要选择在所有应用之上打开,然后选择了就会出现闪退
codepush 现在以及上线生产环境了
对于文中所说的codePush目前是beta版,没法再prod中使用,需要更新
The CodePush service, our management CLI and the Cordova and React Native SDKs are currently in a production-quality state (and we’re constantly improving them!). Additionally, we have lots of users who are successfully deploying updates to their apps in production today (see our showcase for some examples).
使用优化导致Modal无法弹出
你好,在使用了优化后解决了白屏问题,但我在RN里使用Modal组件时出现了无法弹出的现象,应该时由于在创建RootView的时候是在MainActivity,但RN是在MyReactActivity里,所以导致无法显示。请问有什么解决方案么
android白屏优化的问题
博主,我想请教一个问题,你的这种方案可以很大程度上解决效率问题,但是,假如我们从native进入react的一个页面,只有我们第一次进入这个react页面的时候,react页面的生命周期(render,componentDidMount)会执行,接下来每次进入这个react页面生命周期都不会再执行,而是直接就把页面显示出来了,假如我们在进入react页面componentDidMount的时候进行请求数据操作,接下来的每次都不会更新数据,请问一下我该怎么解决这个问题?
关于缓存问题
思路不错,不过0.29.0之后如果这么弄会导致界面的touch事件失效。不知道大神有什么好的解决办法
项目中依赖的RN设置问题
请问, package.json中设定的RN版本和电脑上安装的RN版本有关系吗?我开发环境是0.20,然后也能够运行0.24版本的程序?! 文档中有说可以根据需要更改项目node_modules中RN源码,那也就是说项目默认是没有使用node_modules下的RN,和我电脑上安装的RN更没有关系了呢?
text padding margin 问题
text 一定不要有padding margin,如果要有请在外面套一个view,写在view上
这句怎么理解,有的话会有什么问题么
[评论区]React的render优化通用解决方案
[评论区]一个类似微信群聊程序的技术方案设计过程
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.