Skip to content

Instantly share code, notes, and snippets.

View vanGalilea's full-sized avatar
:octocat:

Steve Galili vanGalilea

:octocat:
View GitHub Profile
@vanGalilea
vanGalilea / enableGooglePay.js
Created July 12, 2024 12:15
Expo plugin to enable Google Pay
// add this plugin to you app.congi.js via plugins - https://docs.expo.dev/versions/latest/config/app/#plugins
//
// ...
// plugins: [
// ...
// "enableGooglePay.js"
// ]
const { AndroidConfig, withAndroidManifest } = require("@expo/config-plugins");
@vanGalilea
vanGalilea / metro.config.js
Last active January 18, 2024 11:01
React native/expo project that is a part of a mono repo
// TODO: for React Native CLI require from '@react-native/metro-config'
const {getDefaultConfig} = require('@react-native/metro-config');
// TODO: for Expo require from 'expo/metro-config'
// const {getDefaultConfig} = require('expo/metro-config');
const path = require('path');
// Find the project and workspace directories
const projectRoot = __dirname;