Git Product home page Git Product logo

scan-native's Introduction

#Android配置环境变量 vi .bash_profile export ANDROID_HOME=~/Library/Android/sdk export PATH=${PATH}:${ANDROID_HOME}/tools export PATH=${PATH}:${ANDROID_HOME}/platform-tools

source .bash_profile 执行

echo $ANDROID_HOME 查看配置是否生效

android 进入android manager
    android-build-tools 23.0.1
    android6.0 sdk platform 用来编译
    
ifconfig | grep 192

#初始化项目 cnpm install -g [email protected] -g react-native init imoocApp react-native run-ios

#安装图标库 cnpm i [email protected] --save

#rn挂载二进制模块库 (模块链接) cnpm i rnpm -g rnpm link react-native-vector-icons

#模拟器控制 cmd+1/2/3/4 控制模拟器窗口大小 cmd+r 刷新 cmd+q 退出 cmd+d 菜单 -> enable hot reloading 热加载 window -> stay in front 窗口始终置于顶层

#react组件生命周期 getDefaultProps -> getInitialState -> componentWillMount -> render -> componentDidMount -> state变化 shouldComponentUpdate -> componentWillUpdate -> render -> componentDidUpdate 外部props变化 componentWillReceiveProps -> shouldComponentUpdate -> componentDidUpdate ->render -> componentDidUpdate 卸载Unmount componentWillUnmount -> 结束

#android打包apk cd android && ./gradlew assembleRelease cd android && ./gradlew installRelease 手机安装apk

#其他 open . 打开当前目录 localhost:8081/debbuger-ui 调试控制台(同时在模拟器菜单中选择debbug in chrome) android 进入android manager ifconfig查看本地ip lsof -i:8081 查看端口占用情况 kill xxxx kill占用端口进程

scan-native's People

Contributors

qiaolei1973 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.