Skip to content

natashajaved/react-native-fb-image-grid

 
 

Repository files navigation

react-native-fb-image-grid

This is the very early alpha age of this library, and the code is very dirty, but all PRs are welcome.

follow on Twitter

NPM

  • stable release version: version
  • package downloads: downloads
  • MIT license

Github

Install

npm i react-native-fb-image-grid.

Usage

NOTE: Container that you are putting your FBGrid Width and Height must be calculated, or it will not appear.

import FbGrid from "react-native-fb-image-grid";

     <FbGrid
            images={[
              "https://facebook.github.io/react-native/docs/assets/favicon.png",
              "https://facebook.github.io/react-native/docs/assets/favicon.png",
              "https://facebook.github.io/react-native/docs/assets/favicon.png",
              "https://facebook.github.io/react-native/docs/assets/favicon.png",
              "https://facebook.github.io/react-native/docs/assets/favicon.png",
              "https://facebook.github.io/react-native/docs/assets/favicon.png"
            ]}
            onPress={onPress}
          /> 
          
    const onPress = imageUrl => {
      // image Url is the image you have clicked.
    }

ScreenShot

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 39.5%
  • Objective-C 32.9%
  • Python 16.4%
  • Java 11.2%