forked from react-native-elements/react-native-elements
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated example app; added all views from hackathon-starter
- Loading branch information
Showing
13 changed files
with
1,073 additions
and
622 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import Expo from 'expo'; | ||
import React from 'react'; | ||
import { StackNavigator } from 'react-navigation'; | ||
import { Icon } from 'react-native-elements'; | ||
|
||
import Pricing from '../views/pricing'; | ||
|
||
const PricingDrawerItem = StackNavigator({ | ||
Pricing: { | ||
screen: Pricing, | ||
}, | ||
}); | ||
|
||
PricingDrawerItem.navigationOptions = { | ||
drawerLabel: 'Pricing', | ||
drawerIcon: ({ tintColor }) => ( | ||
<Icon | ||
name="attach-money" | ||
size={30} | ||
style={{ | ||
width: 50, | ||
height: 50, | ||
alignItems: 'center', | ||
justifyContent: 'center', | ||
}} | ||
type="material" | ||
color={tintColor} | ||
/> | ||
), | ||
}; | ||
|
||
export default PricingDrawerItem; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import Expo from 'expo'; | ||
import React, { Component } from 'react'; | ||
import { View, Text, StyleSheet } from 'react-native'; | ||
|
||
import { StackNavigator } from 'react-navigation'; | ||
|
||
import FormsHome from '../views/forms_home'; | ||
import FormsDetails from '../views/forms_details'; | ||
|
||
const FormsTabView = ({ navigation }) => <FormsHome navigation={navigation} />; | ||
|
||
const FormsDetailTabView = ({ navigation }) => ( | ||
<FormsDetails | ||
banner={`${navigation.state.params.name}s Profile`} | ||
navigation={navigation} | ||
/> | ||
); | ||
|
||
const FormsTab = StackNavigator({ | ||
Forms: { | ||
screen: FormsTabView, | ||
path: '/', | ||
navigationOptions: { | ||
title: 'Forms', | ||
}, | ||
}, | ||
Forms_Detail: { | ||
screen: FormsDetailTabView, | ||
path: '/forms_detail', | ||
navigationOptions: { | ||
title: 'Forms Detail', | ||
}, | ||
}, | ||
}); | ||
|
||
export default FormsTab; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import Expo from 'expo'; | ||
import React, { Component } from 'react'; | ||
import { View, Text, StyleSheet } from 'react-native'; | ||
|
||
import { StackNavigator } from 'react-navigation'; | ||
|
||
import ListsHome from '../views/lists_home'; | ||
import ListsDetails from '../views/lists_detail'; | ||
|
||
const ListsTabView = ({ navigation }) => ( | ||
<ListsHome banner="Lists" navigation={navigation} /> | ||
); | ||
|
||
const ListsDetailTabView = ({ navigation }) => ( | ||
<ListsDetails banner="Lists Detail" navigation={navigation} /> | ||
); | ||
|
||
const ListsTab = StackNavigator({ | ||
Home: { | ||
screen: ListsTabView, | ||
path: '/', | ||
navigationOptions: () => ({ | ||
title: 'Lists', | ||
}), | ||
}, | ||
Lists_Detail: { | ||
screen: ListsDetailTabView, | ||
path: 'lists_detail', | ||
navigationOptions: { | ||
title: 'Lists Detail', | ||
}, | ||
}, | ||
}); | ||
|
||
export default ListsTab; |
Oops, something went wrong.