Can I create widgets on the home screen for Android using the Ionic Framework or React Native?

Widgets are native android constructions that extend the presentation on the application screen.

Is it possible to build a desktop widget using Ionic or edit native?

+7
android-appwidget android-widget react-native ionic-framework
source share
5 answers

I'm not sure, but I found a plugin that can extend my own view to a cordova application. You can install this plugin on

plug cordova add cordova-plug-ace

For more information, please follow the repo link.

+2
source share

Not sure about React Native, but I will answer Ionic.

In one word - no, you cannot.

Ionic is HTML, CSS, JS framework, but it is mainly used with Cordova, which embeds webview in your application and displays HTML, CSS, JS in it. (Answered by Quora )

Here you can find a more detailed explanation of a similar question.

+4
source share

For React Native, this is currently not possible. Their GitHub has an issue , and upvotes for this feature are welcome on the dedicated ProductPains page .

This will probably be eventually implemented.

+1
source share

Maybe, but you still have to rely a lot on some Android concepts. Here is a proof of concept with which you can start:

Respond to your own Android widget. Proof of concept

+1
source share

Yes, it is possible and not difficult to do with my Android project in a very simple way without a plugin with anything. What I did, I created my AppWidget in Android Studio , changing the way I wanted. After I created it, I went to my Ionic project , which I controlled the Android platform , then just copied the java class and .xml layouts , then pasted the / Android platform .

With this, I adapted according to my need in my case res / xml, res / layouts, res / drawable and in the src / the_application_address folders after I just needed to hit my Manisfest.

0
source share

All Articles