Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using ObjectiveC Library in React Native

I'm trying to build a Chromecast App with React Native, and my options for the Chromecast library are either an ObjectiveC version.

With React Native, how would I get the ObjectiveC library into my React Native App?

like image 802
ChadF Avatar asked Jan 02 '26 01:01

ChadF


2 Answers

The React Native documentation walks you through writing a native module to expose JavaScript functions that can call Objective-C methods: https://facebook.github.io/react-native/docs/nativemodulesios.html.

like image 141
ide Avatar answered Jan 03 '26 15:01

ide


Chromecast App using React Native (Swift)

https://github.com/holoed/ChromeCast_ReactNative

like image 23
Holoed Avatar answered Jan 03 '26 15:01

Holoed



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!