Skip to content

Commit b247025

Browse files
committed
remove an unneeded level of View nesting
1 parent ccb870e commit b247025

File tree

1 file changed

+20
-21
lines changed

1 file changed

+20
-21
lines changed

source/views/streaming/webcams.js

Lines changed: 20 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -139,27 +139,26 @@ class StreamThumbnail extends React.PureComponent {
139139
: transparentPixel
140140

141141
return (
142-
<View style={styles.cell}>
143-
<Touchable
144-
highlight={true}
145-
underlayColor={baseColor}
146-
activeOpacity={0.7}
147-
onPress={this.handlePress}
148-
>
149-
<Image source={img} style={styles.image}>
150-
<View style={styles.titleWrapper}>
151-
<LinearGradient
152-
colors={[startColor, baseColor]}
153-
locations={[0, 0.8]}
154-
>
155-
<Text style={[styles.titleText, {color: textColor}]}>
156-
{name}
157-
</Text>
158-
</LinearGradient>
159-
</View>
160-
</Image>
161-
</Touchable>
162-
</View>
142+
<Touchable
143+
highlight={true}
144+
underlayColor={baseColor}
145+
activeOpacity={0.7}
146+
onPress={this.handlePress}
147+
containerStyle={styles.cell}
148+
>
149+
<Image source={img} style={styles.image}>
150+
<View style={styles.titleWrapper}>
151+
<LinearGradient
152+
colors={[startColor, baseColor]}
153+
locations={[0, 0.8]}
154+
>
155+
<Text style={[styles.titleText, {color: textColor}]}>
156+
{name}
157+
</Text>
158+
</LinearGradient>
159+
</View>
160+
</Image>
161+
</Touchable>
163162
)
164163
}
165164
}

0 commit comments

Comments
 (0)