sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh
import NetInfo from '@react-native-community/netinfo'; | |
import {NavigationProp, ParamListBase} from '@react-navigation/native'; | |
interface FetchProps { | |
navigation: NavigationProp<ParamListBase>; | |
base?: string; | |
url: string; | |
method?: 'POST' | 'GET' | 'PUT' | 'PATCH' | 'UPDATE' | 'DELETE'; | |
body?: any; | |
headers?: { |
# Add in ~/.bashrc or ~/.bash_profile | |
function parse_git_branch () { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/' | |
} | |
RED="\[\033[01;31m\]" | |
YELLOW="\[\033[01;33m\]" | |
GREEN="\[\033[01;32m\]" | |
BLUE="\[\033[01;34m\]" | |
NO_COLOR="\[\033[00m\]" |