mirror of
https://github.com/zhigang1992/react-native-web.git
synced 2026-04-24 04:25:27 +08:00
28 lines
525 B
JavaScript
28 lines
525 B
JavaScript
/**
|
|
* @flow
|
|
*/
|
|
|
|
import sources from '../sources';
|
|
import React from 'react';
|
|
import { Image, StyleSheet, View } from 'react-native';
|
|
|
|
const ImageDraggableExample = () => (
|
|
<View style={styles.container}>
|
|
<Image draggable={false} source={sources.large} style={styles.image} />
|
|
</View>
|
|
);
|
|
|
|
const styles = StyleSheet.create({
|
|
container: {
|
|
flexDirection: 'row'
|
|
},
|
|
image: {
|
|
width: 300,
|
|
height: 200,
|
|
backgroundColor: 'transparent',
|
|
marginRight: 10
|
|
}
|
|
});
|
|
|
|
export default ImageDraggableExample;
|