mirror of
https://github.com/zoriya/react-native-web.git
synced 2026-05-23 23:06:24 +00:00
Remove MediaQueryWidget from examples
This commit is contained in:
@@ -1,11 +1,9 @@
|
||||
import GridView from './GridView'
|
||||
import Heading from './Heading'
|
||||
import MediaQueryWidget from './MediaQueryWidget'
|
||||
import React, { Image, StyleSheet, ScrollView, Text, TextInput, TouchableHighlight, View } from 'react-native'
|
||||
|
||||
export default class App extends React.Component {
|
||||
static propTypes = {
|
||||
mediaQuery: React.PropTypes.object,
|
||||
style: View.propTypes.style
|
||||
}
|
||||
|
||||
@@ -17,11 +15,8 @@ export default class App extends React.Component {
|
||||
}
|
||||
|
||||
render() {
|
||||
const { mediaQuery } = this.props
|
||||
const finalRootStyles = [
|
||||
rootStyles.common,
|
||||
mediaQuery.small.matches && rootStyles.mqSmall,
|
||||
mediaQuery.large.matches && rootStyles.mqLarge
|
||||
rootStyles.common
|
||||
]
|
||||
|
||||
return (
|
||||
@@ -35,8 +30,6 @@ export default class App extends React.Component {
|
||||
scroll views – from which more complex components and apps can be
|
||||
constructed.</Text>
|
||||
|
||||
<MediaQueryWidget mediaQuery={mediaQuery} />
|
||||
|
||||
<Heading size='large'>Image</Heading>
|
||||
<Image
|
||||
accessibilityLabel='accessible image'
|
||||
|
||||
Reference in New Issue
Block a user