当前位置: 首页 > 软件库 > 手机/移动开发 > >

nativescript-react

授权协议 MIT License
开发语言 JavaScript TypeScript
所属分类 手机/移动开发
软件类型 开源软件
地区 不详
投 递 者 韩征
操作系统 iOS
开源组织
适用人群 未知
 软件概览

NativeScript-React

�� NativeScript-React

Build native application using React and Nativescript.

How to Install

npm i --save nativescript-react
# or
yard add nativescript-react

How to use ?

import React from 'react';
import AppRegistery from 'nativescript-react';
import App from './path/to/app';

AppRegistery.runApplication(<App />);

React + NativeScript = ��

React declarative, composable API, and speed.
React is skill that is available / the learning curve is very smooth
There is a ton a very usefull React-packages available
React is THE thing anyway

Build 100% native cross-platform apps NativeScript, and the ability to implement platform-specific UIs.
Share 100% of your code, or use platform-specific APIs, depending on the app you’re building.
Use standards-based CSS syntax for styling.
Use rich data binding and existing UI patterns to easily build complex user interfaces.
Reuse any native library available in Objective-C or Java.
Get day-0 access to the OS updates, thanks to the native javascript bindings.
Reuse any JavaScript library that is not browser-dependent.
Reuse the QA tools for accessibility automation to write tests.
Use the latest native platform features to create an amazing native user experience.
Code in any IDE of your choice to implement your applications’ code using the NativeScript framework's CLI.

NB: Take a look at the NativeScript CTO guide ( the advantages are better explained ): https://www.nativescript.org/ctos-guide

Roadmap / Contributing ��

NB: Feature requests are very welcome. You just have to create an issue my friend ! �� ��

  • Render NativeScript components througt React.
  • Support Mutation, Adding/Removing/Insert Children
  • Pipe NativeScript typings and JSDoc to appear on React components and JSX / TSX components.
  • Create a base template tns create myapp --template <path-to-template> ( thanks @NickIliev for requesting this feature :) )
  • Add webpack config and/or create a create-react-app flavor.
  • Implement props.style & RN Stylesheet API.
  • Implement CSS imports
  • Make Styled-Components, React-Pose work out of the box
  • Implement Animated API ( see react-native-web implementation)
  • Implement the ReactNative components (View, Text, etc) to help people transition to NativeScript
  • Implement DOM interface to get instant compatibility with Styled-Components, React-Router, React-Pose, etc ...( use https://www.npmjs.com/package/nativescript-dom package )
  • feature requests are welcome
  • 引入TypeScript yarn add tslib @types/react @types/react-native yarn add --dev react-native-typescript-transformer typescript 我们借助这个react-native-typescript-transformer库进行转换 配置tsconfig.json { "compiler

  • 接触ReactNative也已经一段时间了,把自己遇到的一些问题总结出来希望能帮助到正在踩坑的人。 ListView ListView是RN中的使用频率非常高的组件,问题却也层出不穷,FlatList等列表组件类似。 首先是row中的视图不能随着state或Mobx而实时更新,如果把样式绑定到state中使用this.setState()方法更改数据后会发现,更改数据后视图无法更改,只有新渲染的r

  • 研究了几天react-native,语法基于react,jsx语法,可以自己打包,不需要第三方打包工具。之前研究过微信小程序,感觉和react-native类似,react-native可以将js打包编译为android apk ,而微信小程序是编译后的程序必须依赖微信手机端,微信只是一个平台而已,安装过程按照react-native官方文档流程一步步安装即可,最终在模拟器中执行查看效果

  • 搭建开发环境 笔者强烈建议 git的时候 全程VPN Homebrew Homebrew, Mac系统的包管理器,用于安装NodeJS和一些其他必需的工具软件。 在终端输入: /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" 复制代码 终端出现: ==

  • 一、WebView 组件介绍 使用 WebView 组件可通过 url 来加载显示一个网页,也可以传入一段 html 代码来显示。下面对其主要属性和方法进行介绍。 1. 主要属性 source:在 WebView 中载入一段静态的 html 代码或是一个 url(还可以附带一些 header 选项); automaticallyAdjustContentInsets:设置是否自动调整内容。格式:b

  • 我在执行 npx create-react-native-library react-native-awesome-module 本地模块库工程到yarn example android的时候碰到很多坑,现在一一记录下。 1.Execution failed for task ‘:app:stripDebugDebugSymbols’. > No toolchains found in the

 相关资料
  • React NativeScript is A React renderer for NativeScript, allowing you to write a NativeScript app using the familiar React style. I'm always hanging out in the #react chat of the NativeScript Slack if

  • NativeScript 可以使用 Javascript,CSS, XML 创建真正的 Native 跨平台应用,支持 iOS Android,NativeScript 将您的跨平台代码翻译成目标平台的代码。 UI 使用 XML 描述,CSS 样式,在编译时将 UI 转化成本地原生代码,最终得到正在的 Native 原生应用。 Telerik 公开了用于创建安卓、iOS和Windows Unive

  • NativeScript Command-Line Interface The NativeScript CLI lets you create, build, and deploy NativeScript-based apps on iOS and Android devices. Get it using: npm install -g nativescript What is Native

  • NativeScript-Snackbar �� �� �� NativeScript plugin for Material Design SnackBar component. Installation: NativeScript 7+:tns plugin add @nstudio/nativescript-snackbar NativeScript version prior to 7:t

  • Nativescript-Ripple This plugin aims to bring a native (or close to native) ripple implementation on Android and iOS. The android version uses a RippleDrawable and conserves the previous background, a

  • NativeScript-FloatingActionButton NativeScript plugin for Material Design Floating Action Button UI component. Installation Nativescript 7+: ns plugin add @nstudio/nativescript-floatingactionbutton Na