1import { FileTransforms } from '../../../Transforms.types'; 2 3type Config = { 4 [key: string]: FileTransforms; 5}; 6 7export default function vendoredModulesTransformsFactory(prefix: string): Config { 8 return { 9 'lottie-react-native': { 10 content: [ 11 { 12 paths: 'LRNAnimationViewManagerObjC.m', 13 find: /RCT_EXTERN_MODULE\(/, 14 replaceWith: `RCT_EXTERN_REMAP_MODULE(LottieAnimationView, ${prefix}`, 15 }, 16 { 17 paths: 'ContainerView.swift', 18 find: /\breactSetFrame/g, 19 replaceWith: `${prefix.toLowerCase()}ReactSetFrame`, 20 }, 21 ], 22 }, 23 }; 24} 25