0.1.2 • Published 7 years ago

achievement-view v0.1.2

Weekly downloads
6
License
Apache License 2....
Repository
github
Last release
7 years ago

react-native-achievement-view

Achievement View for Android

Install

yarn add achievement-view
react-native link achievement-view

Example

Check index.android.js in the Example.

android

Usage

import React, { Component } from 'react';
import {
  AppRegistry,
  StyleSheet,
  Text,
  View
} from 'react-native';
import AchievementView from 'achievement-view'

export default class AchievementViewSample extends Component {
  render() {
    return (
      <View style={styles.container}>
        <AchievementView index={1} style={{width: 50,height: 50}}/>
        <AchievementView index={2} style={{width: 100,height: 100}}/>
        <AchievementView index={3} style={{width: 50,height: 50}}/>
        <AchievementView index={6969} style={{width: 100,height: 100}}/>
      </View>
    );
  }
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    justifyContent: 'center',
    alignItems: 'center',
    backgroundColor: '#F5FCFF',
  },
  welcome: {
    fontSize: 20,
    textAlign: 'center',
    margin: 10,
  },
  instructions: {
    textAlign: 'center',
    color: '#333333',
    marginBottom: 5,
  },
});

AppRegistry.registerComponent('AchievementViewSample', () => AchievementViewSample);

You can check index.js in the Example for detail.

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago