1.0.3 • Published 5 years ago

react-native-gameui v1.0.3

Weekly downloads
1
License
ISC
Repository
github
Last release
5 years ago

React Native Game UI

gameui

I don't know why I did this probably I just got nothing to do. This is a game UI library for react native, all components (mens only 4) have been tasted on iOS. I am currently working on all Android features. Write me a tweet if you'd like to help me, I 'd like to add more features.

Installation

  1. Run npm command
npm install react-native-gameui --save
  1. Link dependencies (this is important)
react-native link

Usage

import { GameButton, IconButton, GameIcon, ProgressBar } from 'react-native-gameui';
export default class App extends Component {
  render() {
    return (
  
        <View style={styles.container}>

          <GameButton />
          <IconButton />
          <GameIcon />
          <ProgressBar />

        </View>
      
    );
  }
}
const styles = StyleSheet.create({
  container: {
    flex:1,
    justifyContent: 'center',
    alignItems:'center',
    backgroundColor:'#f5f5f5',
  
  },
});

Components

GameButton

Propstypedefault
textString"Play"
sizeString"large"
iconNameStringnull
fontSizenumber32
backgroundColorstring"#6BCFA4"

IconButton

Propstypedefault
smallboolfalse
nameString"play"
backgroundColorstring"#20B2AA"

GameIcon

Propstypedefault
smallboolfalse
nameString"play"

ProgressBar

Propstypedefault
textString"Loading"
widthnumberDevice Width
valuenumber(0-1)0.7
backgroundColorString"rgba(56, 2011, 160, 0.5)"

Documentation

More documantion

License

I don't know but obvioulsy it is free!

Contact

Twitter: @cbastin0