Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to create home screen widgets for Android using Ionic Framework or React Native?

Widgets are android native constructs that extend a view on the application screen.

Is it possible build a homescreen widget using Ionic or react native?

like image 430
Pedro Justo Avatar asked Oct 12 '15 15:10

Pedro Justo


People also ask

Can I create my own widget on Android?

You can create your own widget with the help of third-party apps. One such app is KWGT Kustom Widget Maker, and for the purpose of this tutorial, we are using it to design a simple event reminder widget that links to the Google Calendar.

Which is better Ionic or React Native?

Conclusion. Ionic React and React Native are both great choices for mobile app development. For teams targeting iOS and Android only and with more traditional native developers or advanced JavaScript developers and an existing repository of native controls, React Native may be a better fit.


2 Answers

Not sure about React Native, but I'll answer regarding Ionic.

In one word - no, you can't.

Ionic is an HTML, CSS, JS framework but it is mostly used with Cordova which embeds the webview in your app and renders HTML, CSS, JS in it. (Answered on Quora)

Here you can find more thorough explanation for a similar question.

like image 160
Yuval Bar Levy Avatar answered Oct 02 '22 13:10

Yuval Bar Levy


It is possible, but you still would have to rely a lot on some Android notions. Here it is a proof of concept you can start with:

React Native Android Widget Proof of Concept

like image 35
jsdario Avatar answered Oct 02 '22 14:10

jsdario