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
// 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; |
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
// 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"); |
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 { FlashList } from "@shopify/flash-list"; | |
import { FlashListProps } from "@shopify/flash-list/src/FlashListProps"; | |
import { LinearGradient } from "expo-linear-gradient"; | |
import React, { useCallback, useState } from "react"; | |
import { StyleSheet, View, ViewStyle } from "react-native"; | |
import { useSafeAreaInsets } from "react-native-safe-area-context"; | |
import { NativeScrollEvent } from "react-native/Libraries/Components/ScrollView/ScrollView"; | |
import { | |
LayoutChangeEvent, | |
NativeSyntheticEvent, |
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
const { withMainActivity } = require("@expo/config-plugins"); | |
/** | |
* A custom Expo plugin to make the Adyen React Native library compatible with Expo SDK 52. | |
* | |
* The Adyen library currently defines the `onNewIntent` method in Kotlin with a nullable | |
* `Intent?` parameter, which is incorrect according to Android's API specifications. | |
* This mismatch causes build failures during the `:app:compileDebugKotlin` task. | |
* | |
* The plugin resolves this issue by replacing the nullable `Intent?` parameter in the |