# react-native-modal-translucent **Repository Path**: mirrors_listenzz/react-native-modal-translucent ## Basic Information - **Project Name**: react-native-modal-translucent - **Description**: Remove the StatusBar background for Modal on Android - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-09 - **Last Updated**: 2026-01-17 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # react-native-modal-translucent Remove the StatusBar background for Modal on Android ### Before ### After ### Usage ```bash npm install react-native-modal-translucent --save # or yarn add react-native-modal-translucent ``` If your RN version is below 0.60, you need to link manually. ``` react-native link react-native-modal-translucent ``` Now run the App and see the Effect. ## Caveat If your react-native version is below 0.57, you need to update your android gradle. First, modify your android/build.gradle ```diff buildscript { + ext { + buildToolsVersion = "28.0.3" + minSdkVersion = 16 + compileSdkVersion = 28 + targetSdkVersion = 28 + supportLibVersion = "28.0.0" + } repositories { + google() jcenter() - maven { - url 'https://maven.google.com/' - name 'Google' - } } dependencies { - classpath 'com.android.tools.build:gradle:2.3.3' + // make sure your gardle version here is equal or greater than 3.3.2 + classpath 'com.android.tools.build:gradle:3.3.2' } } allprojects { repositories { mavenLocal() + google() jcenter() maven { url "$rootDir/../node_modules/react-native/android" } - maven { - url 'https://maven.google.com/' - name 'Google' - } } } -ext { - buildToolsVersion = "26.0.3" - minSdkVersion = 16 - compileSdkVersion = 26 - targetSdkVersion = 26 - supportLibVersion = "26.1.0" -} +task wrapper(type: Wrapper) { + gradleVersion = '4.10.1' + distributionUrl = distributionUrl.replace("bin", "all") +} ``` Second, modify android/gradle/wrapper.gradle-wrapper.properties, make sure the gradle distribution is equal or greater than 4.4 ```diff distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-3.5.1-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.1-all.zip ```