reactnativecn / react-native-docs-cn Goto Github PK
View Code? Open in Web Editor NEWReact Native中文文档
Home Page: http://reactnative.cn
React Native中文文档
Home Page: http://reactnative.cn
2、取消注释好像是不起作用的,我打包了应用,然后解开,里面是没有main.jsbundle,
建议在2后面添加以下说明:
如果注释后报错,可以在终端运行
//进入你react-native的运行目录,也个开启React Native开发服务器的目录
cd /Users/.../node_modules/react-native
//此方法,会在/Users/.../node_modules/react-native 目录下面生成main.jsbundle文件,
curl http://localhost:8081/index.ios.bundle -o main.jsbundle
将main.jsbundle文件拷贝到你的工程中,就可以运行成功了
我最近看官网http://facebook.github.io/react-native/docs/embedded-app-android.html#content
将react集成至现有的Android安卓项目,发现官网还是0.20.+,但是最新版本已经到0.25.1了,我想用最新版本就用不了只有加载本地模块,所以出现这么一个问题:当官网的内容已经过时的时候,我们cn的站点是以保持同步为准呢还是新开一篇最新的教程?
:app:bundleReleaseJsAndAssetsnet.js:641
throw new TypeError('invalid data');
^
TypeError: invalid data
at Socket.write (net.js:641:11)
at Socket.stream.write (/home/workspace/dailynews/node_modules/react-native/node_modules/npmlog/node_modules/ansi/lib/newlines.js:36:21)
at Object.execFileSync (child_process.js:483:20)
at Object.run (cliEntry.js:132:16)
at Object. (/home/workspace/dailynews/node_modules/react-native/local-cli/cli.js:24:12)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Function.Module.runMain (module.js:441:10)
FAILED
FAILURE: Build failed with an exception.
Platform.select
There is also a Platform.select method available, that given an object containing Platform
这是个很好的特性,用起来很方便
PullToRefreshViewAndroid页面的示例代码是SlideIOS的
原网站文档链接 https://facebook.github.io/react-native/docs/pulltorefreshviewandroid.html#content
Hi
I copied your demo code,but there are a great number of errors.
您好, 我想加入
#2 这个pull request引入了一些文档内部的链接,但没有跳转到对应的中文版本,而是跳转到了英文版本。
http://react-native.cn/docs/communication-ios.html#content
标题和跳转地址都应该是中文版本
没有达到要显示的效果
第一段开头,【根本你所使用的操作系统】 中的 【根本】 应该修正为 :【根据】
rt
方法没有翻译
scrollTo
ScrollView里面少了一个onContentSizeChange函数的翻译。
onContentSizeChange function
Called when scrollable content view of the ScrollView changes.
Handler function is passed the content width and content height as parameters: (contentWidth, contentHeight)
It's implemented using onLayout handler attached to the content container which this ScrollView renders.
英文文档那边已经有了getSize和prefetch接口了,中文这边还没有。
https://facebook.github.io/react-native/docs/image.html#content
报错是 Uncaught Error: Cannot find module "bootstrap/less/bootstrap.less"
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.