mattermost / react-native-paste-input

React Native TextInput replacement to allow pasting files
MIT License
89 stars 15 forks source link

Expo error #22

Open frozencap opened 11 months ago

frozencap commented 11 months ago

getting

> 11 | #import "react_native_paste_input-Swift.h"
     |         ^ 'react_native_paste_input-Swift.h' file not found

any ideas?

Godknowsegi commented 10 months ago

it seems this package is not compatible with expo managed work flow

enahum commented 10 months ago

it seems this package is not compatible with expo managed work flow

No is not, pull requests are welcomed

ansh commented 10 months ago

You will have to use expo-dev-client to make this package work

timothyerwin commented 10 months ago

I'm using react native bare workflow and I'm still getting this error. I'm on RN 72 with hermes if that helps.

timothyerwin commented 10 months ago

You will have to use expo-dev-client to make this package work

I tried this. It's still failing.

timothyerwin commented 10 months ago

After some more investigation it seems like the pod installation does not generate this -Swift.h file. I'm using XCode 14.3 and cocoapods 1.12.1 and RN 0.72

timothyerwin commented 10 months ago

I solved it with this:

#import "react_native_paste_input/react_native_paste_input-Swift.h"

I believe you may be able to fix this library with this style:

#if __has_include("TestLib-Swift.h")
    #import "TestLib-Swift.h"
#else
    #import <TestLib/TestLib-Swift.h>
#endif