$ npm install -g expo-cli
$ expo init "project name"
$ npm i -D eslint
$ npx eslint --init
$ npm install eslint-plugin-react-hooks --save-dev
add eslint hook recomend
"extends": [
...
"plugin:react-hooks/recommended",
...
],
add rules
"rules": {
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": ["error"],
...
}
$ npm install @emotion/react @emotion/native
$ npm install moti
- install Reanimated-2 :
$ expo install react-native-reanimated
- add the Babel-plugin to babel.config.js :
module.exports = function(api) {
api.cache(true);
return {
presets: ['babel-preset-expo'],
plugins: ['react-native-reanimated/plugin'],
};
};
- import Components Moti :
import { MotiView, MotiText, MotiScrollView, MotiSafeAreaView, MotiImage } from 'moti'