Package Exports
- @ticmakers-react-native/image
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@ticmakers-react-native/image) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
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 --save
Yarn
$ yarn add @ticmakers-react-native/image
How 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