Closed bombillazo closed 1 year ago
@bombillazo Hello. Are you using React Native or React Native Expo in your project?
React Native Expo
@bombillazo can I have your package.json or tsconfig.json and package.lock files? please
I have various files (we use a monorepo) and they are very large to be honest, what are you looking for ?
@bombillazo for my example project URL of the package.lock looks like this. what does your URL look like? "https://registry.npmjs.org/react-native-metamap-sdk/-/react-native-expo-metamap-sdk-4.5.1.tgz".
I cannot see the file, but I don't see any type definitions inside the metamap node module:
This should be reopen the package are still missing the types definitions, the only thing required is add this code to the file a.ts
declare module 'react-native-expo-metamap-sdk' {
export const MetaMapRNSdk: {
showFlow: (
clientId: string,
flowId: string | null,
metadata: Record<string, string> | null,
) => void
showFlowWithConfigurationId: (
clientId: string,
flowId: string | null,
metadata: Record<string, string> | null,
configurationId: string | null,
encryptionConfigurationId: string | null,
) => void
}
}
renamed to types.ts for more descriptive file and add the location to the types property in the package.json
Hello @AvoSukiasyan I am having this issue but there was no solution provided here for this issue please can you help. I am using expo 51, node 18, npm 9, typescript ~5.3.3, react 18.2.0 , react-native 0.74.1
Hello, when using the MetaMap SDK in TypeScript I get the following error:
Running
npm i --save-dev @types/react-native-expo-metamap-sdk
yields this error: