Socket
Book a DemoInstallSign in
Socket

react-native-game-loader

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-game-loader

```jsx import Loader from "react-native-game-loader";

1.0.3
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

react-native-game-loader

Usage

import Loader from "react-native-game-loader";

function App() {
    return (
        <Loader
            barProgress={0.52}
            barStyle={{
                activeColor: "#ff9327",
                backgroundColor: "#654321",
            }}
            backgroundSource={require('./assets/background.png')}
            logoSource={require('./assets/logo.png')}
        />
    );
}

Properties

PropTypeDefaultDescription
backgroundSourceImageSourcePropTyperequiredAsset used as background
logoSourceImageSourcePropTyperequiredAsset used as logo
logoTopOffsetnumber0.05 (5% of screen height)Top margin for the logo
If value is between 0 and 1 - works as percentage of screen height
logoWidthnumber80% of screen widthWidth of the logo
barProgressnumberrequiredNumber from 0 to 1 representing loading progress
barTextStyleTextStyleStyles for the progress bar's text
barStyleViewStylerequiredStyles for the progress bar
barStyle.activeColorstringrequiredColor of active part of progress bar
barStyle.backgroundColorstringrequiredColor of progress bar's background
barStyle.widthnumber80% of device screen widthWidth of progress bar
barStyle.heightnumber20Height of progress bar
barStyle.paddingnumber3Padding between background and active part
barStyle.borderRadiusnumberbar height / 2 (fully rounded)Border radius of progress bar

FAQs

Package last updated on 07 Sep 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.