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
| { | |
| "TS + React Context Provider + reducer": { | |
| "prefix": "rcp", | |
| "body": [ | |
| "import React, { createContext, useReducer, useContext } from 'react';", | |
| "import type { PropsWithChildren, FC } from 'react';", | |
| "", | |
| "// eslint-disable-next-line @typescript-eslint/no-empty-interface", | |
| "interface $1ProviderProps extends PropsWithChildren {", | |
| " // Provider Props goes here", |
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 { useContext, useEffect, useRef } from "react"; | |
| import { DispatchOrderContext } from "./wrapper"; | |
| export const ShowJ5Form = () => { | |
| const { state: { charge: { j5: { url } } } } = useContext(DispatchOrderContext); | |
| const paymentDiv = useRef<HTMLDivElement>() | |
| useEffect(()=>{ | |
| if(!url) { | |
| if(paymentDiv && paymentDiv.current){ |
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
| interface NominatimResponse { | |
| place_id: number; | |
| licence: string; | |
| osm_type: string; | |
| osm_id: number; | |
| boundingbox: string[]; | |
| lat: string; | |
| lon: string; | |
| display_name: string; | |
| class: string; |
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
| package com.myApp; | |
| import android.app.Application; | |
| import com.facebook.react.PackageList; | |
| import com.facebook.react.ReactApplication; | |
| import com.facebook.react.ReactNativeHost; | |
| import com.facebook.react.ReactPackage; | |
| import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint; | |
| import com.facebook.react.defaults.DefaultReactNativeHost; | |
| import com.facebook.soloader.SoLoader; |
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
| #!/bin/sh | |
| # Get the script's directory (OS-safe) | |
| script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)" | |
| # Change directory to the script's directory | |
| cd "$script_dir" | |
| # Run 'bumpVersion.js' with node (OS-safe) | |
| if [ "$(uname -s)" = "Linux" ] || [ "$(uname -s)" = "Darwin" ]; then |
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
| <template> | |
| <div class="position-relative" style="height: 100vh"> | |
| <div class="card mb-2 position-absolute w-100" style="bottom: 0"> | |
| <a | |
| v-if="isIframe" | |
| class="btn btn-block btn-success text-light" | |
| @click="close()" | |
| >Sample close on callback</a | |
| > |