Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
updateTheme = (event: any) =>
this.setState({ theme: event.matches ? eva.dark : eva.light });
constructor(props: any) {
super(props);
this.state = {
theme: this.themeMediaQuery.matches ? eva.dark : eva.light,
window: Dimensions.get("window"),
selected: null,
};
}