简体   繁体   中英

Import Native ios/Android Code to Xamarin project

I need to import the native ios and android code in existing xamarin project same as react-native do for

ios : https://facebook.github.io/react-native/docs/native-modules-ios android: https://facebook.github.io/react-native/docs/native-modules-android

is it possible to achieve in xamarin ?

Thank you!

Unfortunately, I do not know how does the native modules work in React Native , however, there are Native Bindings that you could create and use in your Xamarin project.

Android :

Xamarin.Android supports the use of native libraries via the standard PInvoke mechanism. You can also bundle additional native libraries which are not part of the OS into your .apk.

iOS :

Xamarin.iOS supports linking with both native C libraries and Objective-C libraries.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM