1.0.2 • Published 6 years ago
@ticmakers-react-native/image v1.0.2
TIC Makers - React Native Image
React native component for image.
Powered by TIC Makers
Demo
Install
Install @ticmakers-react-native/image package and save into package.json:
NPM
$ npm install @ticmakers-react-native/image --saveYarn
$ yarn add @ticmakers-react-native/imageHow to use?
import React from 'react'
import Image from '@ticmakers-react-native/image'
export default class App extends React.Component {
render() {
return (
<Image source={{ uri: 'http://example.com/assets/pic.jpg' }} />
// OR
<Image source={ require('./assets/profile.png.') } />
)
}
}Properties
| Name | Type | Default Value | Definition |
|---|---|---|---|
| source | - | - | - |
Todo
- Test on iOS
- Improve and add new features
- Improve readme
- Create tests