Doubt react-native

-3

I wonder if an application that updates, for example, a small list of information automatically, while undergoing changes in the database (these changes not made in the app comes elsewhere) without needing to press any button, is simple to do and if you have any performance problems or good practice.

    
asked by anonymous 10.09.2018 / 19:19

1 answer

0

If you use technology for display (FrontEnd), you can. Not that it is not possible to execute events, schedule data processing, and so on. But by "Ease", yes.

With React-Native you can create the interface, since ReactJS technology is a UI framework, ... building user interfaces ... ".

You can schedule an event or function in the component lifecycle (React Key Concept) for each time you open that "List", it makes a request to a Web Server (WebService) and displays that list.

I would not need a Button. Just open the application and it would update the content every time you open that screen.

Using Fetch , together with ComponentDidMount () you can achieve your goal without much difficulty.

The level of difficulty varies according to your knowledge of Javascript and React technology.

I hope to have helped, good development!

    
11.09.2018 / 16:39