A method and system for dynamically loading and updating views based on react-native
A technology of dynamic loading and updating methods, applied in the computer field, can solve the problems of affecting the size of the installation package, increasing the size, consuming user data traffic and waiting time, etc., and achieving the effect of reducing the size
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0071] Please refer to figure 1 as well as figure 2 , Embodiment 1 of the present invention is:
[0072] A method for dynamically loading and updating views based on react-native, including steps:
[0073] S1. The template server obtains the initial view template written in React syntax, converts the React template code of the initial view template into JavaScript template code through the Babel compiler, assigns the software data model to the initial view template written in JavaScript template code, and obtains generic view template;
[0074] S2. The template server receives the template identifier of the general view template, and saves the general view template and the template identifier.
[0075] After the developer adds a view template on the template server, the steps to display the first view on the client are:
[0076] S3.1. The client receives the view request information requesting the first view, acquires the first template identifier of the first view, and s...
Embodiment 2
[0086] Please refer to figure 1 as well as figure 2 , the second embodiment of the present invention is:
[0087]A react-native-based view dynamic loading and updating system 1, including a template server 2 and a client 5, the template server 2 includes a first memory 4, a first processor 3, and is stored in the first memory 4 and can be stored in the first memory 4 The first computer program running on the first processor 3, when the first processor 3 executes the first computer program, implements steps S1, S2, S3.2, S3.4, and S4 in the first embodiment above. 2 and step S4.4; the client 5 includes a second memory 7, a second processor 6 and a second computer program stored on the second memory 7 and operable on the second processor 6, the second processor 6 Step S3.1, Step S3.3, Step S4.0, Step S4.1, Step S4.3, and Step S4.5 in the first embodiment above are realized when the second computer program is executed.
[0088] For this embodiment, the template server 2 inclu...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com