Skip to content

Commit 176b51f

Browse files
author
Rishabh Karnad
committed
Merge branch 'master' of https://github.com/GeekyAnts/vue-native-core into develop
2 parents e3aee84 + dec553c commit 176b51f

File tree

8 files changed

+47
-38
lines changed

8 files changed

+47
-38
lines changed

README.md

Lines changed: 10 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Vue Native is a framework to build cross platform native mobile apps using JavaS
1818
- [Installation](#installation)
1919
- [Project setup with Vue Native CLI](#project-setup-with-vue-native-cli)
2020
- [Using Vue Native with a pre-existing React Native or Expo project](#using-vue-native-in-a-react-native-project)
21-
- [Deprecated React Native modules](#react-native-components-that-cant-be-used-out-of-the-box)
21+
- [Available React Native components](#available-react-native-components)
2222
- [Contributors](#contributors)
2323
- [Backers](#backers)
2424
- [Sponsors](#sponsors)
@@ -57,27 +57,15 @@ It is possible to integrate Vue Native into a pre-existing React Native project.
5757

5858
These instructions can also be used to set up a Vue Native project from scratch.
5959

60-
## React Native components that can't be used out of the box
61-
62-
The following modules are set to be removed from React Native in the future.
63-
Hence these modules are no longer made available with Vue Native.
64-
- AlertIOS
65-
- AsyncStorage
66-
- ImageStore
67-
- ListView
68-
- MaskedViewIOS
69-
- NetInfo
70-
- Slider
71-
- SwipeableListView
72-
- ViewPagerAndroid
73-
- WebView
74-
- DatePickerIOS
75-
- DatePickerAndroid
76-
- TimePickerAndroid
77-
- StatusBarIOS
78-
79-
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.
80-
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).
60+
## Available React Native components
61+
62+
All the core components of React Native 0.63 onwards are globally registered and available to use in templates without the need to import and locally register.
63+
64+
[The components and their React Native documentation can be found here.](https://reactnative.dev/docs/components-and-apis)
65+
66+
All other components that were previously available, but then deprecated from React Native can still be used by installing their respective packages.
67+
68+
For example, to use `WebView`, use the [react-native-webview](https://github.com/react-native-webview/react-native-webview) package.
8169

8270
## Contributors
8371

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-native-core",
3-
"version": "0.1.4",
3+
"version": "0.2.0",
44
"description": "Create mobile apps using vuejs",
55
"main": "packages/vue-native-core/index.js",
66
"typings": "types/index.d.ts",
@@ -85,7 +85,7 @@
8585
"rollup-plugin-flow-no-whitespace": "^1.0.0",
8686
"rollup-plugin-prettier": "^0.6.0",
8787
"rollup-plugin-replace": "^2.2.0",
88-
"serialize-javascript": "^1.3.0",
88+
"serialize-javascript": "^3.1.0",
8989
"typescript": "^2.1.6",
9090
"uglify-js": "^3.6.0"
9191
},

packages/vue-native-core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-native-core",
3-
"version": "0.1.4",
3+
"version": "0.2.0",
44
"description": "Library with core functionalities to create Vue Native components",
55
"main": "index.js",
66
"repository": {

packages/vue-native-helper/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-native-helper",
3-
"version": "0.1.4",
3+
"version": "0.2.0",
44
"description": "Helper library with utilities for vue-native-core",
55
"main": "index.js",
66
"repository": {

packages/vue-native-scripts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-native-scripts",
3-
"version": "0.1.4",
3+
"version": "0.2.0",
44
"description": "Compile Vue Native components to React Native",
55
"main": "index.js",
66
"scripts": {},

packages/vue-native-template-compiler/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-native-template-compiler",
3-
"version": "0.1.4",
3+
"version": "0.2.0",
44
"description": "Vue Native template compiler, dependency of vue-native-scripts. It can also be used as a stand-alone compiler",
55
"main": "index.js",
66
"repository": {

scripts/release.sh

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
set -e
22

3-
# check if np is installed
4-
np_version=$(np --version)
5-
echo "Using np:" $np_version
3+
CURRENT_BRANCH=$(git branch --show-current)
4+
if [ $CURRENT_BRANCH != "master" ]; then
5+
echo "This script can only be run in the master branch. Exiting..."
6+
exit 1
7+
fi
68

79
# get the version number from the user
810
read -e -p "Enter the new Vue Native version: " VERSION
@@ -49,19 +51,18 @@ if [[ $REPLY =~ ^[Yy]$ ]]; then
4951
git add -A
5052
git commit -m "[build] $VERSION"
5153

52-
# use np to create release with VERSION and publish vue-native-core
53-
# you MUST be in the master branch to do this
54-
# if it fails, then the last commit is reset and the script exits
55-
# TODO: add tests and remove --yolo
56-
np --no-yarn --contents packages/vue-native-core --yolo $VERSION || { git reset --soft HEAD~1; exit 1; }
57-
5854
# publish packages
5955
# vue-native-core has already been published by np
6056
# packages:
57+
# - vue-native-core
6158
# - vue-native-helper
6259
# - vue-native-scripts
6360
# - vue-native-template-compiler
6461

62+
cd packages/vue-native-core
63+
npm publish
64+
cd -
65+
6566
cd packages/vue-native-helper
6667
npm publish
6768
cd -
@@ -74,4 +75,12 @@ if [[ $REPLY =~ ^[Yy]$ ]]; then
7475
npm publish
7576
cd -
7677

78+
# Update version in main package.json and commit
79+
npm version $VERSION
80+
81+
# Push the tags and version update
82+
git push origin v$VERSION
83+
git push origin master
84+
85+
echo "\nPublished v$VERSION!"
7786
fi

src/shared/constants.js

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,28 @@
11
export const SSR_ATTR = 'data-server-rendered'
22

33
/**
4-
* List of soon to be deprecated packages in react native v0.59
4+
* List of soon to be deprecated packages in react native v0.63
55
*/
66
export const deprecatedPackages = [
77
'AlertIOS',
88
'AsyncStorage',
9+
'CheckBox',
10+
'Clipboard',
11+
'DatePickerAndroid',
12+
'DatePickerIOS',
13+
'ImagePickerIOS',
914
'ImageStore',
1015
'ListView',
1116
'MaskedViewIOS',
1217
'NetInfo',
18+
'Picker',
19+
'PickerIOS',
20+
'ProgressBarAndroid',
21+
'ProgressViewIOS',
22+
'PushNotificationIOS',
23+
'SegmentedControlIOS',
1324
'Slider',
25+
'StatusBarIOS',
1426
'SwipeableListView',
1527
'ViewPagerAndroid',
1628
'WebView',

0 commit comments

Comments
 (0)