An open API service indexing awesome lists of open source software.

https://github.com/ceamkrier/react-native-peeps

React Native implementation of the Open Peeps
https://github.com/ceamkrier/react-native-peeps

avatar-generator avatars customizable open-peeps

Last synced: about 1 month ago
JSON representation

React Native implementation of the Open Peeps

Awesome Lists containing this project

README

          

# react-native-peeps

React-native implementation of the hand drawn illustration library called [Open Peeps](https://www.openpeeps.com/)

peeps example

## Installation

```
npm install react-native-peeps
```

Module depends on react-native-svg, so install it too.

```
npm install react-native-svg
```

If your React Native version is below 0.60 the auto-linking feature won't work. You need to follow the steps to complete your installation of the [react-native-svg](https://github.com/react-native-community/react-native-svg#manually).
Otherwise, running the `npm install react-native-svg` command will be sufficient.



React Native Peeps - Playground

## Usage

```javascript
import { StyleSheet } from 'react-native'
import Peep, { Accessories, Body, Face, FacialHair, Hair } from 'react-native-peeps'

const App = () => {

return (

)
}

const styles = StyleSheet.create({
peepStyle: {
width: 200,
height: 200,
justifyContent: 'center',
alignSelf: 'center'
}
})

```
To use circular version

```javascript

import { StyleSheet } from 'react-native'
import { CirclePeep, Accessories, Body, Face, FacialHair, Hair } from 'react-native-peeps'

const App = () => {

return (

)
}

const styles = StyleSheet.create({
circleStyle: {
backgroundColor: '#F3D34A',
width: 180,
height: 180,
alignSelf: 'center',
borderRadius: 100,
overflow: 'hidden',
borderWidth: 3,
borderColor: 'black'
}
})

```

## Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Thanks :raised_hands:

## License
[MIT]([https://choosealicense.com/licenses/mit/](https://choosealicense.com/licenses/mit/))