How to use the expo-battery.BatteryState.UNKNOWN function in expo-battery

To help you get started, we’ve selected a few expo-battery examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github byCedric / use-expo / example / src / molecules / battery / use-battery-state.tsx View on Github external
export const UseBatteryState: React.SFC = (props) => {
	const [batteryState] = useBatteryState();

	return (
		
			
				This example only uses the Battery module.
				It renders the current battery state, received from the listener.
			
			
				Battery state
				
			
		
	);
};