Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/lopezjurip/ReactNativeTS

Boilerplate of a React Native project in Typescript.
https://github.com/lopezjurip/ReactNativeTS

boilerplate react react-native template typescript vscode

Last synced: about 2 months ago
JSON representation

Boilerplate of a React Native project in Typescript.

Awesome Lists containing this project

README

        

# ReactNativeTS

**:warning: Not maintained anymore, better check [`Microsoft/TypeScript-React-Native-Starter`](https://github.com/Microsoft/TypeScript-React-Native-Starter).**

[![Build Status][ci-image]][ci-url] [![dependencies][dependencies-image]][dependencies-url] [![dev-dependencies][dev-dependencies-image]][dev-dependencies-url]

Minimal template of a [React Native](https://facebook.github.io/react-native/) project with [Typescript](https://www.typescriptlang.org/).

> **This project has been updated but the Medium guide has not**. Please, use this repository as reference.

![preview](https://github.com/mrpatiwi/ReactNativeTS/raw/images/preview.png)

> Recommended usage with [VSCode](https://code.visualstudio.com/)

## Getting Started

* Requirements: [Node.js](https://nodejs.org) and [Yarn](https://yarnpkg.com/)

Clone this repository:

```sh
git clone https://github.com/mrpatiwi/ReactNativeTS.git
cd ReactNativeTS
```

Install dependencies:

```sh
yarn
```

Start React Native server:

```sh
yarn start
```

Build the source-code with Typescript:

```sh
# Build once
yarn run build

# Build and watch for changes
yarn run build -- --watch
```

### iOS

```sh
yarn run ios
```

### Android

```sh
yarn run android
```

## Testing

This project uses Typescript + Jest. Run the test suite with:

```sh
yarn test
```

[ci-image]: https://travis-ci.org/mrpatiwi/ReactNativeTS.svg
[ci-url]: https://travis-ci.org/mrpatiwi/ReactNativeTS
[dependencies-image]: https://david-dm.org/mrpatiwi/ReactNativeTS.svg
[dependencies-url]: https://david-dm.org/mrpatiwi/ReactNativeTS
[dev-dependencies-image]: https://david-dm.org/mrpatiwi/ReactNativeTS/dev-status.svg
[dev-dependencies-url]: https://david-dm.org/mrpatiwi/ReactNativeTS#info=devDependencies