
React-Native 学习之旅
asen23
这个作者很懒,什么都没留下…
展开
-
react-native start 的时候出现TransformError
昨天开始了学习react native,真是坎坎坷坷,按照 react native 中文网上的教程(http://reactnative.cn/docs/0.20/getting-started.html),一开始一切都走的很顺利,但是运行app的时候出现unable to download JS bundle的问题。看react-native start的log,发现有TransformE原创 2016-02-23 11:43:06 · 3314 阅读 · 0 评论 -
初探react-native Hello World
一、开端按照react-native的教程配置好开发环境后只要执行以下步骤,即可创建第一个react native的hello world工程1. 打开命令窗口,在你想要保存工程的位置执行: react-native init CameraProject2. 创建好工程后,先删除react-deep-force-update/.babelrc,这是因为React N原创 2016-02-26 16:43:10 · 639 阅读 · 0 评论 -
React-native debug errors
1.Element type is invalid:expected a string(for built-in components) or a class/function(for composite components)but got:object.Check the render method of 'RootEntry'fix issue:add 'module.exports =原创 2016-05-23 10:47:51 · 803 阅读 · 0 评论 -
react-native 自定义组件
创建第一个组件 react-native 组件只需要在组件代码后面加上:module.exports = YoukuComponet; “YoukuComponet”是我这里将要创建的一个demo组件。SudokuView组件的代码如下:/** * Created by ypxu87 on 2016/11/13. */import React, { Component } from 'r原创 2016-03-02 11:36:18 · 6881 阅读 · 1 评论