The invention discloses an application generation method, device, server and storage medium, in which the application generation method includes the following steps: creating a React component and storing the created component in the component library; in which the React component is used to realize the predetermined function in APP; displaying the React component in the component library in the visual area according to the requirement, and making the real component available to the user. The information of the React components and the React components in the viewing area is saved; the saved React components are transformed into React Native components; and the React Native components are packaged and stored in the application container to generate the application. The invention realizes the visualization of composite business components on the website. By transforming React components into real Native components that can be recognized by mobile terminals, and then packaging and generating APP through the server, users can directly obtain the component information in APP when downloading and using APP, thus making users more fluent when using APP.
【技术实现步骤摘要】
应用程序生成方法、装置、服务器及存储介质
本专利技术涉及通信
,尤其涉及一种应用程序生成方法、装置、服务器及存储介质。
技术介绍
目前常见的生成APP(application,应用程序)的方式为,在网站上由用户自由拖拽组装业务模块,并由这些模块组建成一个网页,该网页包括:HTML(HyperTextMarkupLanguage,超文本标记语言)、js(Javascript,脚本语言)、css(CascadingStyleSheets,层叠样式表)以及图片等资源,就像生成一个普通网页一样,被保存在服务器上,再在APP上访问保存在服务器上的URL(UniformResourceLocator,统一资源定位符)显示出来,通常这种做法被称为HybridAPP(Hybridapplication混合模式移动应用)。现有的生成应用程序的方法,由于是在APP内嵌一个web网页,只有一个UIWebView(界面网页检视)作为原生APP端的容器页,所有的内容都是HTML页面来展示的,访问时需要根据存储在服务器上URL进入到展示应用程序内容的网页,使用体验无法达到原生APP一样流畅,用户体验较差。
技术实现思路
本专利技术实施例提供一种应用程序生成方法、装置、服务器及存储介质,用以解决现有技术中存在的在浏览器中访问应用程序时,应用程序不够流畅的问题。第一方面,本专利技术实施例提供一种应用程序生成方法,所述方法包括如下步骤:创建React组件,并将创建的组件保存在组件库中;其中,所述React组件用于在APP中实现预定功能;根据需求将组件库中的React组件展示在可视区域,并 ...
【技术保护点】
1.一种应用程序生成方法,其特征在于,所述方法包括如下步骤:创建React组件,并将创建的组件保存在组件库中;其中,所述React组件用于在APP中实现预定功能;根据需求将组件库中的React组件展示在可视区域,并对所述可视区域中的各所述React组件及各所述React组件的信息进行保存;将保存的所述React组件转换成React‑Native组件;对所述React‑Native组件进行打包并存储在应用程序容器中生成应用程序。
【技术特征摘要】
1.一种应用程序生成方法,其特征在于,所述方法包括如下步骤:创建React组件,并将创建的组件保存在组件库中;其中,所述React组件用于在APP中实现预定功能;根据需求将组件库中的React组件展示在可视区域,并对所述可视区域中的各所述React组件及各所述React组件的信息进行保存;将保存的所述React组件转换成React-Native组件;对所述React-Native组件进行打包并存储在应用程序容器中生成应用程序。2.如权利要求1所述的应用程序生成方法,其特征在于,在获得应用程序后,所述方法还包括:对生成的应用程序进行编译打包,并生成用于供用户下载所述应用程序的唯一标识码。3.如权利要求1所述的应用程序生成方法,其特征在于,所述React组件包括以下一种或多种:多tab组件、列表信息流组件、图片展示组件和文本组件。4.如权利要求1所述的应用程序生成方法,其特征在于,所述React组件的信息包括以下一种或几种:React组件的名称、React组件的顺序信息、React组件的位置信息和React组件间的嵌套关系信息。5.一种应用程序生成装置,其特征在于,包括:创建模块,用于创建React组件,并将创建的组件保存在组件库中;其中,所述React组件用于在APP中实现预定功能;存储模块,用于根据需求将组件库中的R...
【专利技术属性】
技术研发人员:郭方清,吕庆春,彭飞,
申请(专利权)人:五八有限公司,
类型:发明
国别省市:天津,12
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。