![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
React-Native
坚守那一份执着
这个作者很懒,什么都没留下…
展开
-
React-Native环境配置之安装Node.js
一、安装NVMnvm的作用:nvm是Node的管理器,用来安装Node.js. 安装步骤:1.使用命令行brew install curl或者brew install wget来确保已经安装curl或者wget。 2.安装方式有两种①使用curl方式安装curl -o- https://raw.githubusercontent.com/crea原创 2016-09-15 12:22:47 · 1734 阅读 · 0 评论 -
React-Native开发之运行你的第一个项目
如图咱们已经安装好咱们的项目了根据终端提示,如果要运行IOS项目,就要切换到项目跟目录中 执行cd /Users/Mac/Desktop/ppProject(该目录为你创建项目的根目录),然后执行指令react-native run-ios【注】使用该指令的前提是要将模拟器打开另一种运行方式是用xcode打开项目然后和普通IOS项目一样编译运行效果如下原创 2016-09-18 16:21:51 · 535 阅读 · 0 评论 -
最新版本React-Native(0.31)开发之Could not connect to development server
React-Native 开发之报错Could not connect to development server原创 2016-09-17 20:18:15 · 721 阅读 · 0 评论 -
React-Native拨打电话
调用系统拨打电话功能,其实和打开浏览器访问网址是一样的,只不过打开的地址不是http或https开头,而是tel:开头,像这样:import {Linking} from 'react-native';function callMe(){ return Linking.openURL('tel:10086')}但需要注意,有部分设备是不支持拨打电话的,这包括我们开发环境的i原创 2016-09-05 09:03:12 · 4521 阅读 · 0 评论 -
react-native 使用realm配置教程
经过一天的踩坑终于将realm存储数据啃下,在此感谢江清清大神提供的realm教程。在我使用的过程中遇到了好多坑特此记录下来,防止新学者遇到同样的问题realm环境配置1.切换到项目工程根路径 cd ~/desktop/project (此路径为示例路径)2.添加realm依赖库 npm install realm --save 3.如果你的项目中可以使用rnp原创 2016-09-05 09:03:10 · 1726 阅读 · 0 评论 -
React-native隐藏tabbar
一、项目中使用NavigatorIOS隐藏tabBar的方法找到RCTNavigator.m,在-(void)navigationController:(UINavigationController)navigationController willShowViewController:(__unusedUIViewController *)viewController animated原创 2016-09-05 09:03:05 · 1527 阅读 · 0 评论 -
WebStorm开发工具设置React N…
在做React Native开发时,最常用的开发工具有 webStorm ,sublime,appcode等,很多人都希望开发工具有智能提醒功能,然而我们使用上述开发工具进行ReactNative开发时并没有较好的提示功能。今天给大家介绍一款插件Webstrom live template 使webStrom支持React Native开发智能提醒。下面进入正题插件下载地址https://原创 2016-09-05 09:02:57 · 510 阅读 · 0 评论 -
Application XXX(项目名)&nbs…
Application XXX(项目名) has not beenRegistered. This is either due to a require() error duringinitialization or failure to call AppRegistry.registerComponent造成这种错误有两种情况1 。AppRegistry.registerCompone原创 2016-09-05 09:02:36 · 264 阅读 · 0 评论 -
React-Native "RC…
我们经常在github获取源码后运行会出现缺少 "RCTRootView.h" notfound"文件的错误,对于这种错误解决方法如下1.cd到项目根目录 删除项目node_modles文件2.运行 npm install原创 2016-09-05 09:02:33 · 335 阅读 · 0 评论 -
React-Native alertView弹框代码
最近在学习React-Native基本知识,以下代码是根据官网上的代码示例运行成功的import React, { AppRegistry, Alert, Component, StyleSheet, TouchableHighlight, Navigator, Text, View} from 'react-native';var alertMessa原创 2016-09-05 09:02:31 · 242 阅读 · 0 评论 -
友盟第三方登录
在登录按钮中添加如下代码1.微信第三方登录UMSocialSnsPlatform *snsPlatform =[UMSocialSnsPlatformManagergetSocialPlatformWithName:UMShareToWechatSession]; snsPlatform.loginClickHandler(self,[UMSocialC原创 2016-09-05 09:02:28 · 361 阅读 · 0 评论 -
React-Native For IOS 开发之环境配置
React-Native环境安装 1.安装Homebrew。Homebrew简称brew,是Mac OSX上的软件包管理工具,能在Mac中方便的安装软件或者卸载软件。Homebrew的安装十分简单,只需打开终端复制、粘贴以下命令,回车,搞定。附Homebrew官网/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.c原创 2016-09-15 08:26:48 · 311 阅读 · 0 评论