GithubHelp home page GithubHelp logo

kartikeyvaish / react-native-instagram-reels Goto Github PK

View Code? Open in Web Editor NEW
12.0 2.0 8.0 372 KB

Instagram Reels component for React Native

Home Page: https://github.com/kartikeyvaish/react-native-instagram-reels

License: MIT License

JavaScript 55.89% Starlark 2.20% Java 22.63% Ruby 2.89% Objective-C 16.40%
react-native-instagram reels instagram

react-native-instagram-reels's Introduction

React Native Instagram Reels

It provides a component that allows you to display a list of reels similar to the Instagram app.

Features

  • List of videos
  • Seekable videos
  • Play/Pause option
  • Fully customizable

✨ App Preview

Video Preview

Installation

Just run the below command in your project folder

Note:- This runs only in React Native CLI project. For Expo, you can use this package

To install,

npm i react-native-instagram-reels --save

Usage

import Reels from 'react-native-instagram-reels';

...

// Pass the array of objects with _id and uri as props
<Reels videos={videos} />

Parameters

Required Parameters

Parameter required Default Description
videos YES [] List of videos for reels

Container Parameters

Parameter required Default Description
backgroundColor NO black Background color of the whole container

Header Parameters

Parameter required Default Description
headerTitle NO "Reels" Title to be shown on the top header bar
headerIconName NO arrowright iconName from AntDesign family
headerIconColor NO white icon color for the header bar
headerIconSize NO 24 icon size for the header bar
headerIcon NO null Custom icon component to display
headerComponent NO null custom component to show instead of header bar
onHeaderIconPress NO null function to execute when user presses the back icon in the header Bar

Button Options Parameters

Parameter required Default Description
optionsComponent NO null A custom component to show instead of default options such as like, comment etc.
pauseOnOptionsShow NO true Whether to pause the playback when user touches the scren or not
onSharePress NO null Function to execute when user presses the share button. Gives _id in props
onCommentPress NO null Function to execute when user presses the comment button. Gives _id in props
onLikePress NO null Function to execute when user presses the like button. Gives _id in props
onDislikePress NO null Function to execute when user presses the dislike button. Gives _id in props

Video Player Parameters

Parameter required Default Description
onFinishPlaying NO null Function to execute on every video finish

Slider component Parameters

Parameter required Default Description
minimumTrackTintColor NO null The color used for the track to the left of the button.
maximumTrackTintColor NO null The color used for the track to the right of the button.
thumbTintColor NO null Color of the foreground switch grip.

Time display Parameters

Parameter required Default Description
timeElapsedColor NO "grey" Color of the timestamp which shows total time that has been elapsed since the video started playing
totalTimeColor NO "grey" Color of the timestamp which shows total duration of the clip

react-native-instagram-reels's People

Contributors

kartikeyvaish avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

react-native-instagram-reels's Issues

[Error: undefined Unable to resolve module ./src/Reels/components/Reels from /home/abhi/intrn/refractor/grabbit-live-frontend/node_modules/react-native-instagram-reels/index.js:

`[Error: undefined Unable to resolve module ./src/Reels/components/Reels from /home/abhi/intrn/refractor/grabbit-live-frontend/node_modules/react-native-instagram-reels/index.js:

None of these files exist:

  • node_modules/react-native-instagram-reels/src/Reels/components/Reels(.native|.android.js|.native.js|.js|.android.json|.native.json|.json|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx)
  • node_modules/react-native-instagram-reels/src/Reels/components/Reels/index(.native|.android.js|.native.js|.js|.android.json|.native.json|.json|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx)

1 | import Reels from "./src/Reels/components/Reels";`

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.