chore: release v1.0.0-alpha.0

This commit is contained in:
Brent Vatne
2018-10-15 14:03:21 -07:00
parent 78ffc49e7f
commit 69bebe92b0
6 changed files with 3142 additions and 3339 deletions

View File

@@ -1,12 +1,19 @@
import * as React from 'react';
import Expo from 'expo';
import { FlatList } from 'react-native';
import { createStackNavigator } from 'react-navigation';
import { createAppContainer, createStackNavigator } from 'react-navigation';
import { List, Divider } from 'react-native-paper';
// Unclear why this isn't getitng picked up :O
// eslint-disable-next-line import/named
import { Assets as StackAssets } from 'react-navigation-stack';
import SimpleTabs from './src/SimpleTabs';
import ShiftingTabs from './src/ShiftingTabs';
import IconTabs from './src/IconTabs';
Expo.Asset.loadAsync(StackAssets);
const data = [
{ component: ShiftingTabs, title: 'Shifting', routeName: 'ShiftingTabs' },
{ component: SimpleTabs, title: 'Simple', routeName: 'SimpleTabs' },
@@ -30,6 +37,7 @@ class Home extends React.Component {
render() {
return (
<FlatList
style={{ backgroundColor: '#fff' }}
ItemSeparatorComponent={Divider}
renderItem={this._renderItem}
keyExtractor={this._keyExtractor}
@@ -39,7 +47,7 @@ class Home extends React.Component {
}
}
const App = createStackNavigator({
const MainStack = createStackNavigator({
Home,
...data.reduce((acc, it) => {
acc[it.routeName] = {
@@ -53,4 +61,5 @@ const App = createStackNavigator({
}, {}),
});
const App = createAppContainer(MainStack);
Expo.registerRootComponent(App);

View File

@@ -3,7 +3,7 @@
"name": "React Navigation Material Bottom Tabs Example",
"description": "Demonstrates the various capabilities of react-navigation-material-bottom-tabs",
"slug": "react-navigation-material-bottom-tabs-demo",
"sdkVersion": "27.0.0",
"sdkVersion": "30.0.0",
"version": "1.0.0",
"primaryColor": "#2196f3",
"packagerOpts": {

View File

@@ -3,26 +3,26 @@
"version": "0.0.1",
"private": true,
"scripts": {
"start": "react-native-scripts start",
"android": "react-native-scripts android",
"ios": "react-native-scripts ios"
"start": "expo start",
"android": "expo start --android",
"ios": "expo start --ios"
},
"dependencies": {
"@expo/vector-icons": "^6.2.0",
"expo": "~27.0.0",
"@expo/vector-icons": "^8.0.0",
"@react-navigation/core": "^3.0.0-alpha.4",
"@react-navigation/native": "^3.0.0-alpha.5",
"expo": "~30.0.0",
"hoist-non-react-statics": "^2.5.0",
"prop-types": "^15.6.0",
"react": "16.3.1",
"react-native": "~0.55.0",
"react-native": "~0.55.4",
"react-native-paper": "2.0.1",
"react-navigation": "^2.0.1",
"react-navigation-tabs": "^0.4.0"
"react-navigation": "^3.0.0-alpha.5"
},
"devDependencies": {
"babel-plugin-module-resolver": "^3.0.0",
"babel-preset-expo": "^4.0.0",
"glob-to-regexp": "^0.3.0",
"react-native-scripts": "1.8.1"
"glob-to-regexp": "^0.3.0"
},
"main": "App.js",
"resolutions": {

File diff suppressed because it is too large Load Diff

View File

@@ -1,6 +1,6 @@
{
"name": "react-navigation-material-bottom-tabs",
"version": "0.4.0",
"version": "1.0.0-alpha.0",
"description": "Material Bottom Tab Navigation component for React Navigation",
"main": "dist/index.js",
"files": [
@@ -36,7 +36,9 @@
"dependencies": {
"hoist-non-react-statics": "^2.5.0",
"prop-types": "^15.6.0",
"react-navigation-tabs": "^0.4.0"
"react-navigation-tabs": "^1.0.0-alpha",
"@react-navigation/core": "^3.0.0-alpha.4",
"@react-navigation/native": "^3.0.0-alpha.5"
},
"devDependencies": {
"@expo/vector-icons": "^6.2.0",

File diff suppressed because it is too large Load Diff