π¦ β¨ 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 =
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