If you make any changes you should:
-
Update package version in
package.json
-
Build the package
yarn run build
-
Commit/push your changes and:
npm (update/install) --save meshapp-image-group
on the project that you want to use this component
-
Make sure that this component (on your main project) has the following download link inside the
package.json
:git+ssh://git@github.com/MeshApp/meshapp-image-group.git#master
width: PropTypes.string
<ImageGroup width={'200px'}/>
height: PropTypes.string
<ImageGroup height={'200px'}/>
borderRad: PropTypes.string
<ImageGroup borderRad={'8px'}/>
data: PropTypes.array
<ImageGroup data={['imageUrl(1)', 'imageUrl(2)']}/>
imageClicked: PropTypes.func
<ImageGroup imageClicked={this.YourFunction}/>
This functions will pass the url of the image clicked.
The format of your function should be something like:
twitterImageClicked(urlOfTheImage){}