npm install react-devices
- iPhone 4s
- iPhone 5s
- iPhone 5c
- iPhone 6
- Nexus 5
- lumia920
- Samsung S5
- htc-one
- Macbook
- iPad Mini
- Apple Watch
- Silver
- Black
- Gold
- White
- Red
- Yellow
- Green
- Blue
- Silver
- Yellow Gold (Only for apple watch)
- Rose Gold (Only for apple watch)
- Space Black (Only for apple watch)
- Stainless Steel (Only for apple watch)
- Space Gray (Only for apple watch)
- landscape
- portrait
- 38mm
- 42mm
import React, {PropTypes, Component} from 'react';
import { IPhone, Android, IPad, MacBook, AppleWatch } from 'react-devices';
export default class App extends Component {
constructor(props) {
super(props);
}
render() {
return (
<div>
<IPhone
model="iphone6"
color="silver"
landscape
/>
<Android
model="s5"
color="white"
/>
<IPad
model="ipad"
color="silver"
landscape
/>
<MacBook model="macbook" />
<AppleWatch color="rose-gold" small/>
</div>
);
}
};
Please Open issue, describe bug, suggest solution
Feel free to contribute fixes on any device or add your own to the list by creating a pull request.
To build for development
npm install
npm run build