https://github.com/tableflip/react-native-uploadcare-image
Uploadcare image wrapper for react native
https://github.com/tableflip/react-native-uploadcare-image
Last synced: 11 months ago
JSON representation
Uploadcare image wrapper for react native
- Host: GitHub
- URL: https://github.com/tableflip/react-native-uploadcare-image
- Owner: tableflip
- License: mit
- Created: 2017-06-14T21:35:51.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2018-01-23T08:56:12.000Z (over 8 years ago)
- Last Synced: 2025-04-09T20:46:08.345Z (about 1 year ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# react-native-uploadcare-image
## Example
```js
import UploadcareImage from 'react-native-uploadcare-image'
import defaultImage from './default-image.jpg'
export default function Avatar () {
const url = 'http://www.ucarecdn.com/cca76eb6-1d25-4fee-a7a9-9516cc161b73/'
return (
)
// url is transformed into:
// http://www.ucarecdn.com/cca76eb6-1d25-4fee-a7a9-9516cc161b73/-/scale_crop/64x64/center/-/quality/lighter/
// ...but `resizeImage` prop can be passed to customise:
// `resizeImage={(url, width, height) => { return /* ... */ }}`
}
```
## Contribute
Feel free to dive in! [Open an issue](https://github.com/tableflip/react-native-uploadcare-image/issues/new) or submit PRs.
## License
[MIT](LICENSE) © TABLEFLIP