can I use appcenter with swift for react native project?

Viewed 58

I have used appcenter before with react native and objective C.

But now this project uses swift,

how can I import the objective C library in the swift project?

#import "AppCenterReactNative.h"


import AppCenterReactNative

Do I need a bridging header?

1 Answers

Yes, you can import the library in you bridging header file and then use it in Swift files.

You're using Swift for ReactNative project, so I'm assuming you already have a bridging header file. In case you don't, here are the instructions on how to add a bridging header file.

Related