3.0.0 • Published 5 years ago

react-native-system-ui-flags v3.0.0

Weekly downloads
7
License
MIT
Repository
github
Last release
5 years ago

react-native-system-ui-flags

Plugin for changing system ui visibility on Android

import SystemUiFlags from 'react-native-system-ui-flags';

const FULL_SCREEN_SYSTEM_UI_FLAGS = 0
        | SystemUiFlags.SYSTEM_UI_FLAG_HIDE_NAVIGATION
        | SystemUiFlags.SYSTEM_UI_FLAG_FULLSCREEN
        | SystemUiFlags.SYSTEM_UI_FLAG_IMMERSIVE
        | SystemUiFlags.SYSTEM_UI_FLAG_LAYOUT_STABLE
        | SystemUiFlags.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION
        | SystemUiFlags.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN;
        
SystemUiFlags.updateSystemUiFlags(FULL_SCREEN_SYSTEM_UI_FLAGS);
import SystemUiFlags from 'react-native-system-ui-flags';

const FULL_SCREEN_SYSTEM_UI_FLAGS = 0
        | SystemUiFlags.SYSTEM_UI_FLAG_HIDE_NAVIGATION
        | SystemUiFlags.SYSTEM_UI_FLAG_FULLSCREEN
        | SystemUiFlags.SYSTEM_UI_FLAG_IMMERSIVE
        | SystemUiFlags.SYSTEM_UI_FLAG_LAYOUT_STABLE
        | SystemUiFlags.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION
        | SystemUiFlags.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN;
        
SystemUiFlags.getSystemUiFlags((flags) => {
  const newFlags = flags | FULL_SCREEN_SYSTEM_UI_FLAGS;
  SystemUiFlags.setSystemUiFlags(newFlags);
});
3.0.0

5 years ago

2.0.7

6 years ago

2.0.6

7 years ago

2.0.5

7 years ago

2.0.4

7 years ago

2.0.3

7 years ago

2.0.2

7 years ago

2.0.1

7 years ago

2.0.0

7 years ago

1.0.1

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago