jamesisaac / react-native-background-task

Periodic background tasks for React Native apps, cross-platform (iOS and Android), which run even when the app is closed.
MIT License
1.1k stars 111 forks source link

Unable to resolve module in typescript #43

Open developercode1 opened 6 years ago

developercode1 commented 6 years ago

I am unable to resolve 'react-native'background-task' module in TypeScript. It is not able to find this module and shows error on typescript compilation

TIA

jussirantala commented 6 years ago

It's not typed so you need to use: const BackgroundTask = require('react-native-background-task')