|
1 |
| -# Vue Native: Read more at [vue-native.io](https://vue-native.io) |
| 1 | +# Vue Native |
| 2 | + |
2 | 3 | [](#backers)
|
3 | 4 | [](#sponsors)
|
4 | 5 |
|
5 |
| -### Start with the Vue Native CLI |
| 6 | +Visit our website at [vue-native.io](https://vue-native.io) or read the official documentation [here](https://vue-native.io/docs/installation.html). |
6 | 7 |
|
7 |
| -The Vue Native CLI is used to generate a `Vue Native` app, which is a React Native API wrapper. This means that with Vue Native, you can do anything that could be done with React Native. |
| 8 | +## Build native mobile apps using Vue |
8 | 9 |
|
9 |
| -The Vue Native CLI generates a simple single page application (SPA) using [expo-cli](https://github.com/expo/expo-cli) and |
10 |
| -[vue-native-core](https://github.com/GeekyAnts/vue-native-core). |
| 10 | +Vue Native is a framework to build cross platform native mobile apps using JavaScript. It is a wrapper around the APIs of React Native. So, with Vue Native, you can do everything that you can do with React Native. With Vue Native, you get |
11 | 11 |
|
12 |
| -## Installation Prerequisites |
| 12 | +- **The simplicity of Vue.js.** Incrementally build user interfaces with the familiar syntax of HTML and CSS in single file components. |
| 13 | +- **Seamless interop with React Native.** Use core React Native components with Vue.js syntax out of the box to develop mobile apps on both iOS and Android. |
13 | 14 |
|
14 |
| -You should have expo-cli or react-native-cli installed as a global dependency |
| 15 | +## Contents |
| 16 | +- [Documentation](#documentation) |
| 17 | +- [Installation](#installation) |
| 18 | +- [Project setup with Vue Native CLI](#project-setup-with-vue-native-cli) |
| 19 | +- [Using Vue Native with a pre-existing React Native or Expo project](#using-vue-native-in-a-react-native-project) |
| 20 | +- [Deprecated React Native modules](#react-native-components-that-cant-be-used-out-of-the-box) |
| 21 | +- [Contributors](#contributors) |
| 22 | +- [Backers](#backers) |
| 23 | +- [Sponsors](#sponsors) |
| 24 | +- [License](#license) |
| 25 | +- [Special thanks](#credits-to-react-vue) |
15 | 26 |
|
16 |
| -``` |
17 |
| -For React Native ClI => npm install react-native-cli -g |
18 |
| -``` |
| 27 | +## Documentation |
19 | 28 |
|
20 |
| -``` |
21 |
| -For CRNA => npm install expo-cli -g |
22 |
| -``` |
| 29 | +You can find the full documentation for Vue Native [on this website](https://vue-native.io/docs/installation.html). It covers installation and setup, component basics, routing, testing, the internal API and more. |
| 30 | + |
| 31 | +The source for the Vue Native documentation and website is hosted on a separate repo, [here](https://github.com/GeekyAnts/vue-native-website) |
23 | 32 |
|
24 |
| -## Installation: |
| 33 | +## Installation |
25 | 34 |
|
| 35 | +To install Vue Native's official CLI, run |
26 | 36 | ```
|
27 |
| -$ npm install -g vue-native-cli |
| 37 | +$ npm install vue-native-cli -g |
28 | 38 | ```
|
29 | 39 |
|
30 |
| -Generate [CRNA + Vue App](https://github.com/GeekyAnts/vue-native-core) |
| 40 | +To use the CLI, you must have either [expo-cli](https://github.com/expo/expo-cli) or [react-native-cli](https://github.com/react-native-community/cli) installed globally. |
| 41 | + |
| 42 | +## Project setup with Vue Native CLI |
31 | 43 |
|
| 44 | +The Vue Native CLI can be used to easily generate a fully configured Vue Native app. It wraps `expo-cli` and `react-native-cli` to generate a simple single page application (SPA) after installing and configuring dependencies from [vue-native-core](https://github.com/GeekyAnts/vue-native-core). |
| 45 | + |
| 46 | +You should have either expo-cli or react-native-cli installed as a global dependency. Refer to the [installation guide](https://vue-native.io/docs/installation.html) for details on project setup. The GitHub repository for Vue Native CLI is hosted [here](https://github.com/GeekyAnts/vue-native-cli). |
| 47 | + |
| 48 | +With the CLI, generating a Vue Native project is as easy as running the command |
32 | 49 | ```
|
33 | 50 | $ vue-native init <projectName>
|
34 | 51 | ```
|
35 | 52 |
|
36 |
| -## NOTE: |
| 53 | +## Using Vue Native in a React Native project |
37 | 54 |
|
38 |
| -``` |
39 |
| -'AlertIOS', |
40 |
| -'AsyncStorage', |
41 |
| -'ImageStore', |
42 |
| -'ListView', |
43 |
| -'MaskedViewIOS', |
44 |
| -'NetInfo', |
45 |
| -'Slider', |
46 |
| -'SwipeableListView', |
47 |
| -'ViewPagerAndroid', |
48 |
| -'WebView', |
49 |
| -``` |
50 |
| -The above modules are set to be removed from future core react-native. |
51 |
| -Hence these modules can no longer be imported from vue-native. |
52 |
| -[[Further Instructions](https://facebook.github.io/react-native/blog/2019/03/12/releasing-react-native-059#lean-core-is-underway)] |
| 55 | +It is possible to integrate Vue Native into a pre-existing React Native project. You can find instructions to do this [here](converting-react-native-project.md). |
| 56 | + |
| 57 | +These instructions can also be used to set up a Vue Native project from scratch. |
| 58 | + |
| 59 | +## React Native components that can't be used out of the box |
| 60 | + |
| 61 | +The following modules are set to be removed from React Native in the future. |
| 62 | +Hence these modules are no longer made available with Vue Native. |
| 63 | +- AlertIOS |
| 64 | +- AsyncStorage |
| 65 | +- ImageStore |
| 66 | +- ListView |
| 67 | +- MaskedViewIOS |
| 68 | +- NetInfo |
| 69 | +- Slider |
| 70 | +- SwipeableListView |
| 71 | +- ViewPagerAndroid |
| 72 | +- WebView |
| 73 | + |
| 74 | +If you still wish to use them, you can import them explicitly from `react-native` (until they are removed) or from their individual forked packages. |
| 75 | +For more information, refer to [this page](https://facebook.github.io/react-native/blog/2019/03/12/releasing-react-native-059#lean-core-is-underway). |
53 | 76 |
|
54 | 77 | ## Contributors
|
55 | 78 |
|
|
0 commit comments