This file contains hidden or 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
| // Swipeable 1 - Quick implementation | |
| // file 2 | |
| export default function Swipeable({ onSwipe, name }) { | |
| function onScroll(e) { | |
| e.nativeEvent.contentOffset.x === 200 && onSwipe(); |
This file contains hidden or 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
| // Different Type of Buttons | |
| /* | |
| - TouchableOpacity - can configure the opacity reduction by setting `activeOpacity`. | |
| - TouchableHighlight - like ":visited" in CSS. can configur `underlayColor` and `activeOpacity`. | |
| - TouchableWithoutFeedback | |
| - TouchableNativeFeedback -> Android only has ripple effect | |
| */ |
This file contains hidden or 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
| // #1 - making use of useSelector hook | |
| import { useSelector } from "react-redux"; | |
| const { likedImages } = useSelector((state) => state.likedImages); | |
| const [imageList, setImageList] = useState([]); | |
| useEffect(() => { |
This file contains hidden or 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
| import "react-native-gesture-handler"; | |
| import React from "react"; | |
| import { createBottomTabNavigator } from "@react-navigation/bottom-tabs"; | |
| import { Feed } from "./Feed"; | |
| import { Profile } from "./Profile"; | |
| import { Favorites } from "./Favorites"; | |
| import { AddPost } from "./AddPost"; | |
| import Ionicons from "@expo/vector-icons/Ionicons"; | |
| import { colors } from "../styles/colors"; | |
| import { View } from "react-native"; |
This file contains hidden or 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
| 1. Sending new builds | |
| Build | |
| - iOS: | |
| - Android: | |
| Changes in the latest version: | |
| - Added support for the new 3D Touch feature on iPhone 6s and iPhone 6s Plus |
This file contains hidden or 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
| 1. Q/A in vscode | |
| do similar pattern below | |
| e.g | |
| // q: how to disable auto save? |
This file contains hidden or 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
| /* | |
| * ββββββββββββ Table of contents ββββββββββββ | |
| * | |
| * @1 - object as type | |
| * @2 - enums | |
| * @3 - is | |
| * @4 - satisfies | |
| * @5 - optional props | |
| * @6 - types vs interface | |
| * ββββββββββββ Table of contents ββββββββββββ |
This file contains hidden or 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
| // lint the code | |
| ./gradlew lintVitalRelease | |
| // create a release build | |
| ./gradlew :app:assembleRelease |
This file contains hidden or 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
| // check keystore certificates fingerprint | |
| keytool -list -v -keystore keystore.jks | |
| // check signature of .apk or .aab | |
| jarsigner -verify -verbose -certs app-release.apk | |
| jarsigner -verify -verbose -certs app-release.aab |
This file contains hidden or 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
| # kill multiple devices | |
| adb -s emulator-5554 shell | |
| # log specific app |