Chrome extension using React Native, a good or bad idea? - react-native

We are building an app that will be available on iOS, Android, and as a Chrome extension.
We are considering to use React Native for these three platforms.
I cannot find many accounts of React Native being used for building Chrome extensions, but there is one guide that explains how to do this: https://mmazzarolo.com/blog/2021-09-25-running-react-native-everywhere-electron-browser-ext/.
So, since there is not much information available, we are not sure what is best: Building the Chrome extension cross-platform or building it separately.
Would cross-platform be an efficient solution for a chrome extension or would we encounter problems?
Thanks for any advice!

Related

Using Baidu Map for react native/expo

I'm building a React Native App for a Chinese Company. I'm using Expo.
I really would love to use Google Maps, but it is not allowed there...
The best solution I found was to use Baidu Map,
I searched for SDKs and found some of them in GitHub.
I decided to use this one: https://github.com/qiuxiang/react-native-baidumap-sdk
which provides great documentation.
Although, I'm having some trouble implementing it to the app. I think that they don't support expo.
Does anyone here ever have a similar problem?
Or used another map...
Would really save my life!
This library uses native (Android & iOS) SDKs and provides a React Native API on top of them. Expo does not yet support custom native modules, which means you'll have to eject from it to use this package (or any other that uses BaiduMap or other native code).
I'm guessing they probably have a web based JS SDK instead which you could try to integrate into your app via a <WebView /> instead?

Will this module work in expo or react native?

I am new to react native and expo.
This is the module i am looking at: https://github.com/leesiongchan/react-native-esc-pos
I want to build an app that can print using bluetooth thermal printer. I am not sure if i should build it using react native or expo. Please advise me.
Thank you.
Expo has its own limitations and there are even some bugs there too, Its good for quick development as the documentation suggests the same that it is good to get you started with development within minutes without much hustle. In my opinion, React Native CLI is most of the time the best option even if you are new to react native development. Because of the following reasons
You will learn a lot as you will get your hands dirty in core react native app development.
You won't have to deal with expo limitations
You won't have to be dependent on expo tools
Any Library which requires linking or contains native modules will not work with the expo.
The library you mentioned uses many native modules and usually these type of libraries are not supported and that is the reason why they've built their own APIs and Native Components you can read this,
the developer has not mentioned Expo support anywhere on the docs but still You can open an issue on GitHub and ask the developer if it supports EXPO platform or not, or maybe instead of asking you can try the library yourself and you will find out if its working or not,

Automation testing for react native app for both android and iOS platform

As per project requirement, need to do automation testing on the Reactnative app for Android/iOS platforms. I have seen many frameworks available such as appium, Cavy, Detox.
Need help in the selection of framework for reactnative app testing.
Have appium automation(with Java) experience for Android application.
I'm currently working on developing and maintaining Cavy, so if you have any particular questions regarding Cavy as a solution, I'd be happy to help. Just pop any issues/questions on the GitHub issue tracker.
We're in the process of moving all our documentation to our new site, but it does include a comparison with Detox in the FAQs that you may find useful :)

React-Native need airplay and chrome cast feature

I'm eager to know is there any way to integrate google's chrome cast and apple's airplay in react native app ?
After researching a lot on internet, I found this library is worth. It has both SDKs included in its core components with great examples.

Why do react-native packages use native SDKs and not JS/web versions?

Purely informational question, not really a problem but:
I remember following the instructions and seeing that there were some steps to get the react-native-fbsdk working. These steps involved messing with my android build.gradle and adding the iOS SDK and the info.plist and whatnot. That aside, why doesn't Facebook utilize the javascript SDK? Is it not possible? If so, why is it not possible for Facebook to do this? If it is possible, why did they opt to utilize the both the android and iOS SDK?
One value prop of React Native is that it's not just an HTML 5 website embedded in a native wrapper. It literally uses the native APIs/components, and the same goes for SDKs. Technically, a pure JS SDK could be optimized for a browser experience, rely on window or document, and while the functionality might be able to be executed natively, the polyfills provided in RN might not be enough to cover the implementation. The way it makes API calls are probably different too. The views are different too (no DOM in RN), so that would apply for any SDK views (button?).
I just finished converting an iOS SDK to a React Native package and I feel that the implementation will be more inline with how the original iOS SDK was designed, since it's using those methods under the covers instead of pure JS. JS is just invoking the native methods, not taking over the methods.
Just my $0.02...