4.0.13 • Published 2 years ago
react-native-fullscreen-chz v4.0.13
REACT NATIVE FULL-SCREEN ANDROID
Fullscreen for react-native android by CHZAPPS
Fixed all bugs for react-native 0.66+ Enjoy
ℹ️ INFO : All Bug's for React Native 0.69 + has fixed , If any errors or updates please open a new issue OPEN ISSUE |
---|
Install
yarn add react-native-fullscreen-chz
OR
npm install react-native-fullscreen-chz --save
Usage
Important steps
Goto android / app / res / values / styles.xml
- <resources>
+ <resources xmlns:tools="http://schemas.android.com/tools">
<style name="AppTheme" parent="Theme.AppCompat.DayNight.NoActionBar">
<item name="android:textColor">#000000</item>
<!-- Add this line for notched devices. -->
+ <item name="android:windowLayoutInDisplayCutoutMode" tools:ignore="NewApi">shortEdges</item>
</style>
</resources>
import FullScreenChz from 'react-native-fullscreen-chz';
FullScreenChz.enable()
FullScreenChz.disable() // To disable
Full Example
<resources xmlns:tools="http://schemas.android.com/tools">
<style name="AppTheme" parent="Theme.AppCompat.DayNight.NoActionBar">
<item name="android:textColor">#000000</item>
<!-- Add this line for notched devices. -->
<item name="android:windowLayoutInDisplayCutoutMode" tools:ignore="NewApi">shortEdges</item>
</style>
</resources>
import React from 'react';
import {Button, View} from 'react-native';
import FullScreenChz from 'react-native-fullscreen-chz';
const App = () => {
return (
<View style={{justifyContent: 'center', flex: 1}}>
<Button
title="Foo"
onPress={() => {
FullScreenChz.enable();
//FullScreenChz.disable(); to Disable full screen view
}}
/>
</View>
);
};
export default App;
4.0.13
2 years ago
4.0.9
2 years ago
4.0.8
2 years ago
4.0.5
2 years ago
4.0.4
2 years ago
4.0.10
2 years ago
4.0.6
2 years ago
4.0.1
2 years ago
4.0.3
2 years ago
4.0.2
2 years ago
4.0.12
2 years ago
4.0.11
2 years ago
3.1.12
2 years ago
3.1.11
2 years ago
3.1.14
2 years ago
3.1.13
2 years ago
3.1.16
2 years ago
3.1.15
2 years ago
3.1.10
2 years ago
3.0.3
2 years ago
3.0.2
2 years ago
3.0.1
2 years ago
2.0.12-rcr
2 years ago
2.0.12
2 years ago
1.1.7
3 years ago
1.1.5
3 years ago
1.1.4
3 years ago
1.1.3
3 years ago
1.1.2
3 years ago
1.1.1
3 years ago
1.1.0
3 years ago
1.0.9
3 years ago
1.0.8
3 years ago
1.0.7
3 years ago
1.0.6
3 years ago
1.0.5
3 years ago
1.0.4
3 years ago
1.0.1--
3 years ago
1.0.0
3 years ago
1.0.2
3 years ago
1.0.1
3 years ago
1.0.0--b
3 years ago