Skip to content

Commit

Permalink
Bugfixs and improvements.
Browse files Browse the repository at this point in the history
  • Loading branch information
diogoviannaaraujo committed Mar 22, 2020
1 parent d36cc0c commit 3beb2c9
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 37 deletions.
1 change: 0 additions & 1 deletion src/components/Header/Header.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { SafeAreaView, View } from "react-native";
import Box from "../Box";
import HeaderMenuButton from "./HeaderMenuButton";
import Heading from "../Heading";
import Surface from "../Surface";
import Backdrop from "../Backdrop";

const boxStyle = {
Expand Down
6 changes: 3 additions & 3 deletions src/components/Header/HeaderMenuButton.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import React from "react";
import { TouchableOpacity } from "react-native";
import { Icons } from "@vela/ui";
import { useNavigation } from "@react-navigation/native";
//import { useNavigation } from "@react-navigation/native";

export default function HeaderMenuButton() {
const navigation = useNavigation();
//const navigation = useNavigation();
return (
<TouchableOpacity onPress={navigation.openDrawer}>
<TouchableOpacity>
<Icons.Menu />
</TouchableOpacity>
);
Expand Down
60 changes: 27 additions & 33 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,33 +1,27 @@
import DrawerItem from './components/DrawerItem'
import Surface from './components/Surface'
import Speedometer from './components/Speedometer'
import Backdrop from './components/Backdrop'

export Box from './components/Box'
export Button from './components/Button'
export Card from './components/Card'
export Control from './components/Control'
export Distance from './components/Distance'
export Footnote from './components/Footnote'
export Header from './components/Header/Header'
export Heading from './components/Heading'
export Icons from './components/Icons'
export Image from './components/Image'
export Label from './components/Label'
export Link from './components/Link'
export Paragraph from './components/Paragraph'
export SelectInput from './components/SelectInput'
export Spacer from './components/Spacer'
export Subheading from './components/Subheading'
export Tag from './components/Tag'
export Text from './components/Text'
export TextField from './components/TextField'
export TextInput from './components/TextInput'
export Theme from './components/Theme'
export DrawerItem from './components/DrawerItem'
export DrawerContent from './components/DrawerContent'
export Surface from './components/Surface'
export Speedometer from './components/Speedometer'
export Screen from './components/Screen'
export {useTheme} from './lib/theme'
export Backdrop from './components/Backdrop'
export {default as Surface} from "./components/Surface"
export {default as Speedometer} from "./components/Speedometer"
export {default as Card} from './components/Card'
export {default as Backdrop} from "./components/Backdrop"
export {default as Box} from "./components/Box"
export {default as Button} from "./components/Button"
export {default as Control} from "./components/Control"
export {default as Distance} from "./components/Distance"
export {default as Footnote} from "./components/Footnote"
export {default as Header} from "./components/Header/Header"
export {default as Heading} from "./components/Heading"
export {default as Icons} from "./components/Icons"
export {default as Image} from "./components/Image"
export {default as Label} from "./components/Label"
export {default as Link} from "./components/Link"
export {default as Paragraph} from "./components/Paragraph"
export {default as SelectInput} from "./components/SelectInput"
export {default as Spacer} from "./components/Spacer"
export {default as Subheading} from "./components/Subheading"
export {default as Tag} from "./components/Tag"
export {default as Text} from "./components/Text"
export {default as TextField} from "./components/TextField"
export {default as TextInput} from "./components/TextInput"
export {default as Theme} from "./components/Theme"
export {default as DrawerContent} from "./components/DrawerContent"
export {default as Screen} from "./components/Screen"
export {useTheme} from "./lib/theme"

0 comments on commit 3beb2c9

Please sign in to comment.