File tree Expand file tree Collapse file tree 5 files changed +6
-6
lines changed
Expand file tree Collapse file tree 5 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -9,13 +9,13 @@ A lightweight implementation that exposes [Android's system UI visibility API](h
99## Installation
1010
1111``` sh
12- yarn install @hudl/rn -system-bars
12+ yarn install react-native -system-bars
1313```
1414
1515## Usage
1616
1717``` typescript
18- import AndroidSystemBars from " @hudl/rn -system-bars" ;
18+ import AndroidSystemBars from " react-native -system-bars" ;
1919
2020// Go immersive (i.e. hide status bar and nav bar)
2121AndroidSystemBars .setSystemUIVisibility (
Original file line number Diff line number Diff line change 11{
22 "name" : " rn-system-bars-example" ,
3- "description" : " Example app for @hudl/rn -system-bars" ,
3+ "description" : " Example app for react-native -system-bars" ,
44 "version" : " 0.0.1" ,
55 "private" : true ,
66 "scripts" : {
Original file line number Diff line number Diff line change 11import React , { useCallback } from 'react' ;
22import { StyleSheet , View , Button } from 'react-native' ;
33
4- import AndroidSystemBars from '@hudl/rn -system-bars' ;
4+ import AndroidSystemBars from 'react-native -system-bars' ;
55
66export default function App ( ) {
77 const onImmersivePress = useCallback ( ( ) => {
Original file line number Diff line number Diff line change 11{
2- "name" : " @hudl/rn -system-bars" ,
2+ "name" : " react-native -system-bars" ,
33 "version" : " 0.2.0" ,
44 "description" : " Control the visibility of Android's Status and Navigation Bars" ,
55 "main" : " lib/commonjs/index" ,
Original file line number Diff line number Diff line change 22 "compilerOptions" : {
33 "baseUrl" : " ./" ,
44 "paths" : {
5- "@hudl/rn -system-bars" : [" ./src/index" ]
5+ "react-native -system-bars" : [" ./src/index" ]
66 },
77 "allowUnreachableCode" : false ,
88 "allowUnusedLabels" : false ,
You can’t perform that action at this time.
0 commit comments