UNPKG

@talkjs/expo

Version:

Official TalkJS SDK for React Native (Expo)

18 lines (15 loc) 1.16 kB
"use strict"; /* (Victor August 2024):`require.context` has been available on React Native since v0.72.1 (2023: https://github.com/facebook/metro/issues/52#issuecomment-2072494624) It is still considered experimental however, the Expo guys have it enabled in the Expo Metro bundler as it is needed for their Expo Router feature. As noted in this comment: https://github.com/facebook/metro/pull/822/#issuecomment-1807132897 the fact that this has been working just fine on Expo for quite some time now means that it should probably be considered stable. While testing I discovered that `require.context`'s first parameter has to be a static string hence why there's a lot of code duplication=related to dynamic imports. I tried making a generic function for dynamic importing libraries and that's when I made the above discovery. */ export const FirebaseMessagingContext = require.context('../../../../@react-native-firebase/messaging/lib', false, /index\.js$/); export const ExpoNotificationsContext = require.context('../../../../expo-notifications/build', false, /index\.js$/); //# sourceMappingURL=Imports.js.map