import * as React from 'react';
import { View, Text } from 'react-native';
import {
ActionButton,
Avatar,
ThemeContext,
COLOR,
Badge,
Button,
Card,
Checkbox,
Dialog,
DialogDefaultActions,
BottomNavigation,
Toolbar,
IconToggle,
getTheme
} from 'react-native-material-ui';
const theme = {
palette: {
accentColor: COLOR.amber500,
primaryColor: COLOR.indigo700
},
fontFamily: 'System'
};
const Example = () =>
{theme => Hello world! }
console.log(a)}/>
;
const DialogExample = () =>
;
class BottomNavigationExample extends React.Component {
state = {
active: 'today'
};
render() {
return (
this.setState({ active: 'today' })}
/>
this.setState({ active: 'people' })}
/>
this.setState({ active: 'bookmark-border' })}
/>
this.setState({ active: 'settings' })}
/>
);
}
}
class ToolbarExample extends React.Component<{}, {search: string}> {
state = {
search: ''
};
handleResults(search: string) {
this.setState({ search });
}
render() {
return (
this.handleResults(text),
onSearchCloseRequested: () => this.handleResults(''),
}}
/>
);
}
}