22/11/2023

nghiên cứu code survey
build app ios

Agenda

info
fix warp
vào quản lý tác vụ hệ thống → serch MDNResponser → stop nó → restart máy

add eslint to my clip app
tạo .eslintrc.js
module.exports = {
env: {
'jest/globals': true,
},
root: true,
extends: ['@react-native-community'],
plugins: ['jest'],
rules: {
semi: ['error', 'never'],
'object-curly-spacing': ['error', 'always'],
'array-bracket-spacing': ['error', 'never'],
'react/require-default-props': ['off'],
'react/default-props-match-prop-types': ['error'],
'react/sort-prop-types': ['error'],
},
settings: {
'import/resolver': {
'babel-module': {},
},
},
}
tạo .prettierrc.js
module.exports = {
arrowParens: "avoid",
bracketSameLine: false,
singleQuote: true,
trailingComma: "all",
semi: false,
}

install idb for flipper
brew tap facebook/fb brew install idb-companion
brew install python@3.9
sudo pip3.9 install fb-idb
which idb

Error : Could not determine the dependencies of task ':app:compileDebugJavaWithJavac' while running React Native Project

4
Add SDK(sdk.dir) location path in local.properties file:
For windows users:
sdk.dir = C:\\Users"MyUserName"\\AppData\\Local\\Android\\Sdk

For Mac users:
sdk.dir = /Users/USERNAME/Library/Android/sdk

For Linux users:
sdk.dir = /home/USERNAME/Android/Sdk
New topic

Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
CtrlP
) instead.