<commit_before><commit_msg>添加新文章<commit_after>---
layout: post
title: װReact-Native
date: 2017-2-25
categories: blog
tags: [¼]
---

Ҫο[React-Nativeٷĵ](https://reactnative.cn/docs/0.41/getting-started.html#content)
# һ Nodejsnpm
[Nodejsصַ](https://nodejs.org/download/release/v7.6.0/)
[npmصַ](https://nodejs.org/dist/npm/)
ѡʺԼ汾أòµNodejsѾnpmnpmװģʱִΪNodejs汾עx64ĵ64-bitģx86ĵ32-bitġ(https://nodejs.org/en/download/)
ǷֿصģnpmļзŵC:\Program Files (x86)\nodejs\node_modules
#ڶ ذװJDK
CMDjava -versionԲ鿴ûаװJDKûеĻȥ[](http://www.oracle.com/technetwork/java/javase/downloads/index-jsp-138363.html)һ1.8汾ġȻ·ӵ
# Android SDKͰװAndroid Studio
[Andriod Studioصַ](https://developer.android.com/studio/index.html#downloads)
صAndroid StudioûԴSDKôصַǴSDK
װAndroid StudioʱעⲻҪ·дģǳҪ
#Ĳ  չ̲Android Studio

#岽 װReact-Native
CMD(ڹԱݴ)npm install -g react-native-cli˵npmǸö
# 
ȴAndroid StudioģһҪȿģ
ȻѡһĿ¼
<code>
react-native init AwesomeProject
cd AwesomeProject
react-native run-android
</code>
ʱܹУǾллˡ˵Ʒܺáҵʱһ
```
ENOENT: no such file or directory, open react-native 'C:\TDM-GCC-64\BIN;C:MINGW\BIN;C:User\AppData\Local\Temp'
```
ɶȥStackOverflowҲûҵ𰸡ǿòƺϤ·򿪻ֹȻTEMP·ɾ·react-native run-android. nice! !

#Ľ
ݹʾظ[genymotion](https://www.genymotion.com/download/)򿪺Addһʵİ汾Android StudioҲÿˡ nice!

#ܽ
ҪЩû˾ţȻŪһ춼겻ɣҲ֪ô졣֮£react.jsİװҪ׵öˡ
{'fraction_non_alphanumeric': 0.15642023346303502, 'fraction_numerical': 0.025680933852140077, 'mean_word_length': 6.184357541899441, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 6, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 5, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5914901', 'n_tokens_mistral': 719, 'n_tokens_neox': 711, 'n_words': 73}