Please provide the following:
- SDK Version: 46
- Platforms(Android/iOS/web/all): iOS
- Add the appropriate “Tag” based on what Expo library you have a question on.
I recently started using “expo native modules” to add custom native functionality to my app. As this native functionality becomes more and more complex I wish to use third party libraries in my native module. More specifically I’d like to create a native view which leverages the Google digital ink library (part of MLKit) to recognize handwritten textual input.
What I’ve done to accomplish this:
- added
s.dependency 'GoogleMLKit/DigitalInkRecognition'
to the podspec of the native module - added
import MLKit
to the native module view file (swift file) -
pod install
in the ios folder of the example project for the native module -
npx expo run:ios
in the example project for the native module
However, I always get the following error:
no such module ‘MLKit’ (it’s complaining about the import MLKit
line)
What am I missing?
I am thankful for any kind of help.