Skip to content

UmairMukhtar/react-facebook-photo-grid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Facebook Photo Grid Example , Creates Grid Posts like Facebook

This React component shows images in a neat square (or whatever dimensions you want) grid. Acts like facebooks image grids. Switches between several modes according to number of photos provided

You just need to pass any number of images to the component and rest will be taken care of.

#Usages

  npm install react-facebook-photo-grid
  yarn add react-facebook-photo-grid


  const data =[Image1, Image2, Image3, Image4, Image1, Image2],


// whereever you use ReactPhotoGrid
import Photogrid from "react-facebook-photo-grid";

   <Photogrid
      images={data} //required
    // width={600} //optional according to your need
    maxWidth={400} //optional according to your need
    ></Photogrid>
);

You dont need to worry about anything , the photo grid will automatically adjust according to the size of container , or if you want you can pass optional props width and maxWidth


Two Picture Grid


Three Picture Grid


Four Picture Grid


Five Picture Grid


More Than Five Pictures Grid


We also allow limited support for video, currently only one video along with many pictures
One Video On Picture


Kindly let us know how we can imporove this package

Facebook

Our Facebook Page

Linkedin

Our Linkedin Profile

Runing Locallay

In the project directory, you can run:

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published