React, ReactNative + TypeScript + StyledComponent

1262 ワード

React + TypeScript


Create-React-App docs
$ npx create-react-app my-app --template typescript

ReactNative + TypeScript


ReactNative docs
ReactNative Type Scriptリファレンスページの適用
$ react-native init MySampleApp --template react-native-template-typescript

Styled Componentの適用


styled-component docs
Styled Componentリファレンスページの適用
$ npm install --save styled-components
$ npm install --save-dev babel-plugin-styled-components
$ npm install --save-dev @types/styled-components