This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// React Native component | |
const getMultipleData = async () => { | |
try { | |
const savedData = await AsyncStorage.multiGet(["city", "user"]); | |
console.log(savedData); | |
} catch (error) { | |
console.log(error); | |
} | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const places = { | |
name: "İlkay", | |
country: "Turkey" | |
}; | |
const food = { | |
name: "Spaghetti Pasta" | |
}; | |
const firstData = ["places", JSON.stringify(places)]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// React Native component | |
const places = { | |
name: "İlkay", | |
country: "Turkey" | |
}; | |
const food = { | |
name: "Rice" | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// React Native component | |
const multiRemoveData = async () => { | |
try { | |
await AsyncStorage.multiRemove(["places", "food"]); | |
} catch (error) { | |
console.log(error); | |
} | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
yarn add -D prettier eslint husky lint-staged | |
npm pkg set scripts.prepare="husky install" | |
if not git installation | |
git init | |
git add . | |
git commit -m "first commit" | |
npm run prepare | |
npx husky add .husky/pre-commit "yarn lint-staged --concurrent false" | |
git add .husky/pre-commit | |
git commit -m "Keep calm and commit" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xsetwacom --set 12 button 3 "key PgUp" | |
xsetwacom --set 12 button 2 "key PgDn" |
OlderNewer