# react-native-stories-byn

> Edited react-native-stories-media for project usage

Latest version **0.1.3** (published 2021-05-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-native-stories-byn
pnpm add react-native-stories-byn
yarn add react-native-stories-byn
bun add react-native-stories-byn
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.3 |
| Published | 2021-05-24 |
| First published | 2021-05-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 6 |
| Unpacked size | 1.7 MB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | _____ |
| Maintainers | sting__112 |

## Links

- npm: https://www.npmjs.com/package/react-native-stories-byn
- npm.io page: https://npm.io/package/react-native-stories-byn

## Dependencies (6)

- [react-native-video](https://npm.io/package/react-native-video.md) ^5.1.0-alpha8
- [react-native-webview](https://npm.io/package/react-native-webview.md) ^10.9.3
- [react-native-modalbox](https://npm.io/package/react-native-modalbox.md) ^1.7.1
- [react-native-vector-icons](https://npm.io/package/react-native-vector-icons.md) ^6.6.0
- [react-native-swipe-gestures](https://npm.io/package/react-native-swipe-gestures.md) ^1.0.3
- [react-native-3dcube-navigation](https://npm.io/package/react-native-3dcube-navigation.md) ^1.0.4

## Recent versions

- 0.1.3 (latest) — 2021-05-24
- 0.1.2 — 2021-05-24
- 0.1.1 — 2021-05-24

## README

# React Native Stories Media ⚡

[![npm version](https://img.shields.io/npm/v/react-native-stories-media.svg)](https://www.npmjs.com/package/react-native-stories-media)
![Platform - Android and IOS](https://img.shields.io/badge/platform-Android%20%7C%20IOS-green.svg)

![](assets/storybg.jpeg)
<br>

A simple and fully customizable React Native components that provides a status/stories feature like Whatsapp, Instagram. For navigation across all the stories you can touch the left or right portion of the screen similar to what we see on Whatsapp or Instagram. The library works seemleslly across both Android as well as IOS platform developed with ❤️ in <b>Typescript & React</b> 🔥.

#### Feature's include :

- Video in portrait and landscape
- Read more with webview
- Progress bar with custom duration & styling options.
- A fully customizable Header View, you can use default one or pass in your choice of component.

<br>

## Spread Your ❤️:

[![GitHub followers](https://img.shields.io/github/followers/iguilhermeluis.svg?style=social&label=Follow)](https://github.com/iguilhermeluis) [![Twitter Follow](https://img.shields.io/twitter/follow/gldesenvolvedor.svg?style=social)](https://twitter.com/gldesenvolvedor)
<br>

## Demo

 <img src='https://github.com/iguilhermeluis/react-native-stories-media/blob/main/demo/demo.gif?raw=true' height=480 width=270 />

<br>

## Screenshots

| Example One           | Example Two           | Example Three         | Example Four          | Example Five          |
| --------------------- | --------------------- | --------------------- | --------------------- | --------------------- |
| ![](demo/screen0.png) | ![](demo/screen4.png) | ![](demo/screen2.png) | ![](demo/screen5.png) | ![](demo/screen3.png) |

<br>

## Installation

If using yarn:

```
yarn add react-native-stories-media
```

If using npm:

```
npm i react-native-stories-media
```

<br>

## Usage

For example code, <a href='https://github.com/iguilhermeluis/react-native-stories-media/blob/main/demo/index.tsx'><b>Click here</b></a>

#### Basic Usage

```js
import React from "react";
import { View } from "react-native";
import Stories from "react-native-stories-media";

const data = [
  {
    username: "Guilherme",
    title: "Title story",
    profile:
      "https://avatars2.githubusercontent.com/u/26286830?s=460&u=5d586a3783a6edeb226c557240c0ba47294a4229&v=4",
    stories: [
      {
        id: 1,
        url:
          "https://images.unsplash.com/photo-1532579853048-ec5f8f15f88d?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=800&q=60",
        type: "image",
        duration: 2,
        isReadMore: true,
        url_readmore: "https://github.com/iguilhermeluis",
        created: "2021-01-07T03:24:00",
      },
    ],
  },
  {
    username: "Bruno",
    profile: "https://avatars2.githubusercontent.com/u/45196619?s=460&v=4",
    title: "Travel",
    stories: [
      {
        id: 0,
        url:
          "https://images.unsplash.com/photo-1500099817043-86d46000d58f?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=800&q=60",
        type: "image",
        duration: 2,
        isReadMore: true,
        url_readmore: "https://github.com/iguilhermeluis",
        created: "2021-01-07T03:24:00",
      },
      {
        id: 1,
        url: "https://www.w3schools.com/html/mov_bbb.mp4",
        type: "video",
        duration: 2,
        isReadMore: true,
        url_readmore: "https://github.com/iguilhermeluis",
        created: "2021-01-07T03:24:00",
      },
      {
        id: 2,
        url:
          "https://images.unsplash.com/photo-1476292026003-1df8db2694b8?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=800&q=60",
        type: "image",
        duration: 2,
        isReadMore: false,
        url_readmore: "",
        created: "2021-01-07T03:24:00",
      },
      {
        id: 3,
        url:
          "https://images.unsplash.com/photo-1498982261566-1c28c9cf4c02?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=800&q=60",
        type: "image",
        duration: 2,
        isReadMore: true,
      },
    ],
  },
  {
    username: "Steve Jobs",
    profile:
      "https://s3.amazonaws.com/media.eremedia.com/uploads/2012/05/15181015/stevejobs.jpg",
    title: "Tech",
    stories: [
      {
        id: 1,
        url:
          "https://images.unsplash.com/photo-1515578706925-0dc1a7bfc8cb?ixlib=rb-1.2.1&auto=format&fit=crop&w=800&q=60",
        type: "image",
        duration: 2,
        isReadMore: true,
        url_readmore: "https://github.com/iguilhermeluis",
        created: "2021-01-07T03:24:00",
      },
      {
        id: 3,
        url:
          "https://images.unsplash.com/photo-1496287437689-3c24997cca99?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=800&q=60",
        type: "image",
        duration: 2,

        isReadMore: true,
        url_readmore: "https://github.com/iguilhermeluis",
        created: "2021-01-07T03:24:00",
      },
      {
        id: 4,
        url:
          "https://images.unsplash.com/photo-1514870262631-55de0332faf6?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=800&q=60",
        type: "image",
        duration: 2,

        isReadMore: true,
        url_readmore: "https://github.com/iguilhermeluis",
        created: "2021-01-07T03:24:00",
      },
    ],
  },
  {
    username: "Jacob",
    profile:
      "https://images.unsplash.com/profile-1531581190171-0cf831d86212?dpr=2&auto=format&fit=crop&w=150&h=150&q=60&crop=faces&bg=fff",
    title: "News",
    stories: [
      {
        id: 4,
        url:
          "https://images.unsplash.com/photo-1512101176959-c557f3516787?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=800&q=60",
        type: "image",
        duration: 2,
        isReadMore: true,
        url_readmore: "https://github.com/iguilhermeluis",
        created: "2021-01-07T03:24:00",
      },
      {
        id: 5,
        url:
          "https://images.unsplash.com/photo-1478397453044-17bb5f994100?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=800&q=60",
        type: "image",
        duration: 2,

        isReadMore: true,
        url_readmore: "https://github.com/iguilhermeluis",
        created: "2021-01-07T03:24:00",
      },
      {
        id: 4,
        url:
          "https://images.unsplash.com/photo-1505118380757-91f5f5632de0?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=581&q=80",
        type: "image",
        duration: 2,
        isReadMore: true,
        url_readmore: "https://github.com/iguilhermeluis",
        created: "2021-01-07T03:24:00",
      },
    ],
  },
];

export default function Demo() {
  return (
    <View style={{ flex: 1, paddingVertical: 20 }}>
      <Stories data={data} />
    </View>
  );
}
```

## About Me

## Guilherme Luis Faustino

_Hi, I'm Guilherme Luis. I've been working as Front-End Developer since 2009. I'm passionate about open source projects, I believe that the dissemination of knowledge and good ideas inspires and improves the world._

For more exciting updates follow me,

[![Twitter Follow](https://img.shields.io/twitter/follow/gldesenvolvedor.svg?style=social)](https://twitter.com/gldesenvolvedor)

---
_Source: https://npm.io/package/react-native-stories-byn · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
