Giter Site home page Giter Site logo

odelowo / react-native-instagram-story-circle Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wrathchaos/react-native-instagram-story-circle

0.0 0.0 0.0 18.12 MB

Fully customizable Instagram Story Circle with Bounceable Animated Library for React Native

Home Page: https://freakycoder.com

JavaScript 7.20% Starlark 2.63% Java 27.07% Ruby 2.69% Objective-C 21.02% TypeScript 39.38%

react-native-instagram-story-circle's Introduction

React Native Instagram Story Circle

Fully customizable Instagram Story Circle with Bounceable Animated Library for React Native

npm version npm Platform - Android and iOS License: MIT styled with prettier

React Native Instagram Story Circle

Installation

Add the dependency:

npm i react-native-instagram-story-circle

Peer Dependencies

IMPORTANT! You need install them
"react-native-linear-gradient": ">= 2.5.6"
"@freakycoder/react-native-bounceable": ">= 0.1.0",

Usage

Import

import IGStoryCircle from "react-native-instagram-story-circle";

Fundamental Usage

Please look at the example simply run it and check how it works :)

<IGStoryCircle source={source} hasStory onPress={() => {}} />

Configuration - Props

Property Type Default Description
source image undefined set the image for the circle
size number 64 change the size of the circle
onPress function undefined set the onPress functionality when the component is pressed
innerBorderColor string "#000" change the inner circle of the component
outerBorderRadius number 32 change the whole instagram story circle's outer border radius
innerBorderRadius number 32 change the whole instagram story circle's inner border radius
hasStory boolean undefined set true to activate story's colorful ring
storyRingColor [string, string] ["#feda75", "#d62976"] change the ring color
defaultRingColor [string, string] ["#000", "#000"] change the default ring color when hasStory is false
profileImageBorderSize number 0 change the profile image border size
notificationCount number undefined set the notification count
notificationBubbleBackgroundColor color "#eb3434" change the notification background color
notificationSize number 18 change the notification circle's size
notificationPositionTop number default change the notification circle's position of the top side
notificationPositionLeft number default change the notification circle's position of the left side
ImageComponent component Image set your own Image component instead of default React Native's Image component

Future Plans

  • LICENSE
  • Write an article about the lib on Medium

Credits

Inspired on Zafer Ayan's Medium Article

Author

FreakyCoder, [email protected]

License

React Native Instagram Story Circle is available under the MIT license. See the LICENSE file for more info.

react-native-instagram-story-circle's People

Contributors

wrathchaos 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.