Skip to content

lwhiteley/react-native-gravatar

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

react-native-gravatar

Install

npm install --save react-native-gravatar

Use

eg.

import React, { Component } from 'react';
import {StyleSheet} from 'react-native';
import {Gravatar, GravatarApi} from 'react-native-gravatar';

class MyComponent extends Component {
	render() {

		return (
      <View >
        <Gravatar options={{
              email: 'example@gmail.com',
              parameters: { "size": "200", "d": "mm" },
              secure: true
            }}
            style={styles.roundedProfileImage} />
      </View>
    )
  }
}

var styles = StyleSheet.create({
  roundedProfileImage: {
    width:100, height:100, borderWidth:3,
    borderColor:'white', borderRadius:50
  }
})

For a better idea of what options can be passed, please view gravatar-api

Notes

  • pull requests are welcome

About

react-native wrapper for gravatar-api

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published