Skip to content

Instantly share code, notes, and snippets.

View kumarparth380's full-sized avatar
🎯
Focusing

Kumar Parth kumarparth380

🎯
Focusing
View GitHub Profile
@kumarparth380
kumarparth380 / react-native-sqlite-migrations.js
Created September 30, 2020 01:27
Sqlite DB Migration (React-native)
/**
* extend this to make new migrations
*/
import * as Sentry from "@sentry/react-native";
export class RNSqliteMigration {
constructor(db, sql, version) {
this.version = version;
this._db = db;
this._sql = sql;
@kumarparth380
kumarparth380 / ReplaceString.js
Created February 10, 2022 04:13
Replace "$" from array of string and join
const ourVision = [
"B$u$i$ld",
"$t$$h$e",
"N$e$x$t",
"E$$ra",
"$$o$f$",
"S$$of$t$wa$r$e",
"De$$ve$l$op$me$n$t",
];
@kumarparth380
kumarparth380 / campaigns.ts
Last active December 21, 2023 03:03
Custom Hooks with Typescript
import { MutableRefObject, useCallback, useContext, useMemo, useRef } from "react";
import {
AsyncState,
ethErrorHandler,
useAsync,
useEthAddress,
useLibrary,
useSigner,
useTokenCtx
} from ".";