Giter VIP home page Giter VIP logo

eureka-rn-components's Introduction

eureka-rn-components

A Libary of React Native Components

This library uses the react-native-elements library. All these components can be used.

Installation

npm i https://github.com/EurekaLabs-Dev/eureka-rn-components --save

Install react-native-vector-icons (if you do not already have it)

npm i react-native-vector-icons --save && react-native link react-native-vector-icons

If you have any issues with icons not working or installation of React Native Vector Icons, check out their installation guide here

Included

  • Avatar
  • AvatarToggle
  • ButtonSecond
  • Circle
  • ConnectionMessage
  • Countdown
  • DiaItem
  • Form-Input
  • Form
  • HeaderBar
  • LineCircle
  • ListItem
  • ListViewFull
  • Login
  • MonthLinePicker
  • Separator
  • Timeline

API

Avatar

Take an image and description to show a circulated image with the description.

Avatar

import { Avatar } from 'eureka-rn-components';
<Avatar
    image={{uri: 'http://natashavanzetti.com/wp-content/uploads/2015/08/Ther-1-person-thumbnail.png'}}
    size={60}
    description='Joana'
    />

Avatar PropTypes

prop default type description
image none any (required) A source from an image, the same for the Image component.
size 40 number The size is the width and height of the Image Circle.
description none any Can be a text or Component. This shows under the image.
style none object This style is applied in the container.

Timeline

Take a array of items and show that in a simple timeline(circles over a line).

Timeline

The items in the array must be in this format:

  {
    title: string,
    startDate: datetime,
    endDate: datetime,
    status: string (optional)
  }
  import { Timeline } from 'eureka-rn-components';

  const itens = [{
    title: 'Jogo de Futebol',
    startDate: Date.now() + 200 * 3600 * 1000,
    endDate: Date.now(),
    status: 'Vai iniciar'
  }, {
    title: 'Acampamento',
    startDate: Date.now(),
    endDate: Date.now(),
    status: 'Em Andamento'
  }, {
    title: 'Jogo de boliche',
    startDate: Date.now() - 125 * 3600 * 1000,
    endDate: Date.now(),
    status: 'Em Andamento'
  }];

  <View style={{flex: 1, paddingTop: 20}}>
    <Timeline
      currentDayColor='orange'          
      itens={itens}/>
  </View>

Timeline PropTypes

prop default type description
itens none array (required) Items that will be shown in timeline.
currentDayColor grey string Circle's background color of the day that matches the current date.
currentDayTextColor white string Text's background color of the day that matches the current date.
lineColor #c4c4c4 string Color of the line between the circles and circle's border.

eureka-rn-components's People

Contributors

ktabriga avatar eurekalabs-dev avatar zmwilliam avatar

Stargazers

Wallace Batista avatar Eliel Barone avatar  avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.