# react-native-template-leke

> leke react-native 模板

Latest version **1.0.8** (published 2018-11-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-native-template-leke
pnpm add react-native-template-leke
yarn add react-native-template-leke
bun add react-native-template-leke
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.8 |
| Published | 2018-11-27 |
| First published | 2018-08-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 27.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | yanglihua |
| Keywords | leke, react, react native, react-native-template-lekern |

## Links

- npm: https://www.npmjs.com/package/react-native-template-leke
- npm.io page: https://npm.io/package/react-native-template-leke

## Dependencies (1)

- [lefit-react-native-bridge](https://npm.io/package/lefit-react-native-bridge.md) ^1.0.4

## Recent versions

- 1.0.8 (latest) — 2018-11-27
- 1.0.7 — 2018-11-26
- 1.0.6 — 2018-11-26
- 1.0.5 — 2018-11-26
- 0.0.1 — 2018-08-09

## README

# 乐刻 React Native 模板

使用 [乐刻自定义 React Native 模板](https://www.npmjs.com/package/react-native-template-leke)  ，快捷构建集导航器、高阶组件、热更新、乐刻业务组件等能力的React Native 项目

* [如何搭建](#getting-started)
* [关于模板](https://github.com/mkonicek/AppTemplateFeedback/issues/1)

模板中已经配置自定义桥接器      [iOS桥接器](http://gitlab.leoao-inc.com/Lefit_iOS_Organization/LKReactNativeBridge.git) / [Android桥接器](http://gitlab.leoao-inc.com/Lefit_iOS_Organization/LKReactNativeBridge.git)
<br>
推荐使用 [官方文档](https://facebook.github.io/react-native/docs/tutorial.html) 查看任何关于React Native API。

## Quick Overview

使用以下命令创建新项目之前，确保你已经配置node环境以及React Native CLI，并且已经安装了Xcode和Android Studio用以运行项目。

```bash
$ react-native init projectName --version=0.51.1  --template leke
```
创建完项目之后，需要对项目进行初始化

```bash
$ cd projectName
$ sh tools/init.sh
```
初始化完成之后，`npm start`启动服务，并且使用IDE或者命令运行模拟器/真机。

## Sections

* [Getting Started](#getting-started)
* [Bridge](#bridge)
* [FAQs](#faqs)
* [Contributing](#contributing)

## Getting Started

### 安装

* 必须需要安装的依赖，包括：Node、Watchman、The React Native CLI。  [官方网站](https://facebook.github.io/react-native/docs/getting-started) 提供了环境搭建文档
<br>
* IDE选择：iOS IDE Xcode、Android IDE Android Studio、JS IDE WebStorm (也可以使用，更轻量一点)
<br>

### 创建新项目

* 使用react-native init 创建项目：

```bash
$ react-native init projectName（你创建的项目名称） --version=0.51.1（你需要指定的React Native版本） --template leke
# --version=***可以缺省，默认使用最高版本
```

* 执行init.sh脚本, 请勿重复执行:

```bash
$ cd projectName
$ sh tools/init.sh
```

* 初次运行需要先安装Node和Pod库:

#### `npm run init`

* 库有更新的话通过如下命令:

#### `npm run update`

* 开启服务:

#### `npm start`

* iOS运行:
#### `react-native run-ios`

* Android运行:
#### `react-native run-android`

## Bridge

模板中已经配置自定义桥接器      [iOS桥接器](git@gitlab.leoao-inc.com:Lefit_iOS_Organization/LKReactNativeBridge.git) / [Android桥接器](git@gitlab.leoao-inc.com:Lefit_iOS_Organization/LKReactNativeBridge.git)

## FAQs

### 真机调试

Xcode中选取设备后，iOS可以直接运行。
<br>
Android运行真机目前需要先获取电脑IP进行设置。

### 版本要求

react-native: >= 0.47, <= 0.55,
<br>iOS: >= 8.0
<br>Android: >= 4.1 (API 16)

## Contributing
有任何疑问或建议，欢迎[Issues](http://gitlab.leoao-inc.com/groups/Lefit_RN_Organization/issues)。
有对代码bug的修正和优化，欢迎[Pull requests](http://gitlab.leoao-inc.com/groups/Lefit_RN_Organization/react-native-template-leke/pulls)。

---
_Source: https://npm.io/package/react-native-template-leke · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
