Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
)
}
}
Toolbar.propTypes = {
title: PropTypes.string,
navIconName: PropTypes.string,
onNavIconPress: PropTypes.func,
additionalIcon: PropTypes.element,
additionalIconTitle: PropTypes.string,
onAdditionalIconPress: PropTypes.func,
children: React.PropTypes.any,
style: PropTypes.any
}
export default Platform.OS === 'ios' ? Toolbar : Icon.ToolbarAndroid
TouchableWithoutFeedback,
Text,
} from 'react-native';
import Icon from 'react-native-vector-icons/MaterialIcons';
import CONFIG from './../config';
export class Layout extends Component {
static propTypes = {
children: React.PropTypes.oneOfType([
React.PropTypes.element,
React.PropTypes.arrayOf(React.PropTypes.element),
]).isRequired,
toolbarTitle: React.PropTypes.string,
onToolbarIconPress: React.PropTypes.func,
toolbarActions: Icon.ToolbarAndroid.propTypes.actions,
onToolbarActionSelected: React.PropTypes.func,
background: React.PropTypes.oneOfType([
Image.propTypes.source,
React.PropTypes.string,
]),
disablePadding: React.PropTypes.bool,
styles: Image.propTypes.style,
};
static defaultProps = {
toolbarTitle: null,
background: require('./../assets/background.jpg'),
disablePadding: false,
};
constructor(props, context, updater) {