Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
sunlight3d committed Jul 4, 2017
1 parent d91e3fa commit 241e285
Show file tree
Hide file tree
Showing 78 changed files with 13,429 additions and 78 deletions.
Binary file modified .DS_Store
Binary file not shown.
Binary file not shown.
Binary file not shown.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,19 +1,32 @@
import React from 'react';
import {Text, View } from 'react-native';

import { TabNavigator } from "react-navigation";
import FirstScreen from './tabs/FirstScreen'
import SecondScreen from './tabs/SecondScreen'
import {TabNavigator} from "react-navigation";


var MainScreenNavigator = TabNavigator({
Tab1: {screen: FirstScreen},
Tab2: {screen: SecondScreen}
});
}, {
tabBarPosition: 'bottom',
swipeEnabled: true,
tabBarOptions: {
activeTintColor: 'white',
activeBackgroundColor: 'darkgreen',
inactiveTintColor: 'black',
inactiveBackgroundColor: 'green',
labelStyle: {
fontSize: 16,
padding:0
}
}
}
);

MainScreenNavigator.navigationOptions = {
title: 'My Chats',
title: "Tab example"
};

export default MainScreenNavigator; // Export your root navigator as the root component


export default MainScreenNavigator;
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -1,14 +1,30 @@
/**
* Created by hoangnd on 6/27/17.
* Created by hoangnd on 7/4/17.
*/

import React from 'react';
import {Text, View, Button} from 'react-native';
const util = require('util');
import {Text, View, Button, Image} from 'react-native';

export default class FirstScreen extends React.Component {
static navigationOptions = {
tabBarLabel: 'Home',
tabBarIcon: ({tintColor}) => (
<Image
source={require('../images/icon-home.png')}
style={{width: 22, height: 22, tintColor: 'white'}}>
</Image>
)
}
render() {
return <Text>List of recent chats</Text>
return <View style={
{
flex: 1,
justifyContent: 'center',
alignItems: 'center'
}
}>
<Text style={{fontSize: 30}}>
This is tab 1
</Text>
</View>
}
}

}
Original file line number Diff line number Diff line change
@@ -1,12 +1,31 @@
/**
* Created by hoangnd on 6/27/17.
* Created by hoangnd on 7/4/17.
*/
import React from 'react';
import {Text, View, Button} from 'react-native';
const util = require('util');
import {Text, View, Button, Image} from 'react-native';

export default class SecondScreen extends React.Component {
static navigationOptions = {
tabBarLabel: 'Shopping',
tabBarIcon: ({tintColor}) => (
<Image
source={require('../images/icon-shopping.png')}
style={{width: 22, height: 22, tintColor: 'white'}}>
</Image>
)
}

render() {
return <Text>List of recent chats</Text>
return <View style={
{
flex: 1,
justifyContent: 'center',
alignItems: 'center'
}
}>
<Text style={{fontSize: 30}}>
This is tab 2
</Text>
</View>
}
}
}
Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"presets": ["babel-preset-expo"],
"env": {
"development": {
"plugins": ["transform-react-jsx-source"]
}
}
}
Loading

0 comments on commit 241e285

Please sign in to comment.