Closed Angelk90 closed 6 years ago
Hi @Angelk90, I am afraid I don't really understand your questions.
If you want to create a ListView for the Widget, that must be performed on the native Android side (.java
or .xml
files). The data that is passed from the javascript in the [widgetTask.js] file https://github.com/jsdario/react-native-android-widget-poc/blob/master/widgetTask.js
If i am wrong let me know
@jsdario :
I will try to be clearer.
Consider this API: https://www.simplifiedcoding.net/demos/marvel/
I want to do this: 1) Through js, make a fetch to the API take the data and pass them to the native part. 2) The native part must take the data and for each row, to take a certain character is to print for each row, the image of the character with its name.
I'm having doubts about how everything should be done.
I suppose in widgetTask, I have to fetch the data and pass it to initializeWidgetBridge.
Here you find what I'm trying to do: https://github.com/Angelk90/React-Widget
Could you kindly give me a hand?
Graphically it should come something like this:
I suppose in widgetTask, I have to fetch the data and pass it to initializeWidgetBridge.
You are just right, that should be the very basics. I am afraid I can't afford time to help you further, but you are in the right path :)
@jsdario: Hello congratulations on the module. I would like to use inside a listview is the data that must be displayed by the listview I have to be taken from the js. How can I do?