Skip to content

Instantly share code, notes, and snippets.

View arpitBhalla's full-sized avatar

Arpit Bhalla arpitBhalla

View GitHub Profile
{
"exercise":[
{
"url": "https:\/\/exerciseright.com.au\/blog\/",
"img": "https:\/\/exerciseright.com.au\/wp-content\/uploads\/2022\/08\/snowboarding.jpg",
"title": "When it comes to exercise",
"desc": "There's so much misinformation when it comes to exercise. Our blogs are written by real experts, so you can trust that the information is research-based and"
},
{
"url": "https:\/\/www.healthline.com\/health\/fitness-exercise\/best-blogs-of-the-year#1",

Motivation

Currently we can extend the default theme using TS declaration merging feature, like

declare module 'react-native-elements' {
  export interface TextProps {
    h5: boolean;
    h5Style: StyleProp<TextStyle>;
  }
 export interface FullTheme {
/** @type {import('@types/jscodeshift/index').Transform} */
module.exports = function(file, api) {
const j = api.jscodeshift;
const rootProperties = {
type: "ImportDeclaration",
source: {
type: "Literal",
value: "react-native-elements",
@arpitBhalla
arpitBhalla / ZSH.zsh-theme
Last active July 22, 2023 09:29
My ZSH personal theme
_get_directory() {
local i pwd
# pwd=("${(s:/:)PWD/#$HOME/~}")
# if (( $#pwd > 1 )); then
# for i in {1..$(($#pwd-1))}; do
# # if [[ "$pwd[$i]" = .* ]]; then
# # pwd[$i]="${${pwd[$i]}[1,2]}"
# # else
# # pwd[$i]="${${pwd[$i]}[1]}"