pod outdated
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
// TIP 1 | |
// - Using the useSharedValue hook | |
// - Using the useAnimatedStyle hook | |
const AnimatedComponents = () => { | |
const buttonPressed = () => { | |
// Toggle the animation state based on button press | |
isAnimating.value = !isAnimating.value; | |
}; |
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
// To list all installed JDK versions | |
/usr/libexec/java_home -V | |
// To set default JDK version | |
export JAVA_HOME=`/usr/libexec/java_home -v 1.8` | |
// To set specific JDK version (if need specific) | |
export JAVA_HOME=`/usr/libexec/java_home -v 1.8.0_131` |
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
installer.aggregate_targets.each do |target| | |
target.xcconfigs.each do |variant, xcconfig| | |
xcconfig_path = target.client_root + target.xcconfig_relative_path(variant) | |
IO.write(xcconfig_path, IO.read(xcconfig_path).gsub("DT_TOOLCHAIN_DIR", "TOOLCHAIN_DIR")) | |
end | |
end | |
installer.pods_project.targets.each do |target| | |
target.build_configurations.each do |config| | |
if config.base_configuration_reference.is_a? Xcodeproj::Project::Object::PBXFileReference | |
xcconfig_path = config.base_configuration_reference.real_path |
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
Trigger menu for android emulator | |
- adb shell input keyevent 82 | |
- or command m | |
index.android.bundle issue | |
- mkdir android/app/src/main/assets | |
- npx react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res |
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
1. Command to add to recognize the file type | |
#!/bin/bash | |
use .sh extension | |
######################################## | |
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
// Using => useSharedValue + useAnimatedStyle + withTiming | |
// this is a shared value that be used between UI and JS thread | |
// example (example is like an accordion) | |
export default function ExpandingTextBox() { | |
// creating shared value via useSharedValue | |
const boxHeight = useSharedValue(150); | |
// creating worklet via useAnimatedStyle, and incorporating the withTiming method |
expo upgrade ___
npx expo install --fix
npx expo install --check
npx react-native info
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
# Settings DNS server for emulator | |
emulator -avd Pixel_5_API_31 -dns-server 8.8.8.8 | |
# Lock and Unlock | |
SLEEP = adb shell input keyevent 223 | |
WAKE UP = adb shell input keyevent 224 |
NewerOlder