Improve Rooms List (#152)
Use TouchableHighlight and TouchableNativeFeedback instead of TouchableOpacity
This commit is contained in:
parent
1ff125a477
commit
a15774c4ff
|
@ -7,7 +7,7 @@ exports[`render channel 1`] = `
|
||||||
accessibilityLabel="general, last message Nov 10"
|
accessibilityLabel="general, last message Nov 10"
|
||||||
accessibilityTraits="selected"
|
accessibilityTraits="selected"
|
||||||
accessible={true}
|
accessible={true}
|
||||||
collapsable={undefined}
|
hasTVPreferredFocus={undefined}
|
||||||
hitSlop={undefined}
|
hitSlop={undefined}
|
||||||
isTVSelectable={true}
|
isTVSelectable={true}
|
||||||
nativeID={undefined}
|
nativeID={undefined}
|
||||||
|
@ -19,16 +19,28 @@ exports[`render channel 1`] = `
|
||||||
onResponderTerminationRequest={[Function]}
|
onResponderTerminationRequest={[Function]}
|
||||||
onStartShouldSetResponder={[Function]}
|
onStartShouldSetResponder={[Function]}
|
||||||
style={
|
style={
|
||||||
|
Array [
|
||||||
Object {
|
Object {
|
||||||
"alignItems": "center",
|
"backgroundColor": "transparent",
|
||||||
"flexDirection": "row",
|
},
|
||||||
"opacity": 1,
|
undefined,
|
||||||
"paddingHorizontal": 16,
|
]
|
||||||
"paddingVertical": 10,
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
testID={undefined}
|
testID={undefined}
|
||||||
tvParallaxProperties={undefined}
|
tvParallaxProperties={undefined}
|
||||||
|
>
|
||||||
|
<View
|
||||||
|
style={
|
||||||
|
Array [
|
||||||
|
Object {
|
||||||
|
"alignItems": "center",
|
||||||
|
"flexDirection": "row",
|
||||||
|
"paddingHorizontal": 16,
|
||||||
|
"paddingVertical": 10,
|
||||||
|
},
|
||||||
|
undefined,
|
||||||
|
]
|
||||||
|
}
|
||||||
>
|
>
|
||||||
<View
|
<View
|
||||||
style={
|
style={
|
||||||
|
@ -122,6 +134,7 @@ exports[`render channel 1`] = `
|
||||||
</View>
|
</View>
|
||||||
</View>
|
</View>
|
||||||
</View>
|
</View>
|
||||||
|
</View>
|
||||||
`;
|
`;
|
||||||
|
|
||||||
exports[`render no icon 1`] = `
|
exports[`render no icon 1`] = `
|
||||||
|
@ -131,7 +144,7 @@ exports[`render no icon 1`] = `
|
||||||
accessibilityLabel="name, last message Nov 10"
|
accessibilityLabel="name, last message Nov 10"
|
||||||
accessibilityTraits="selected"
|
accessibilityTraits="selected"
|
||||||
accessible={true}
|
accessible={true}
|
||||||
collapsable={undefined}
|
hasTVPreferredFocus={undefined}
|
||||||
hitSlop={undefined}
|
hitSlop={undefined}
|
||||||
isTVSelectable={true}
|
isTVSelectable={true}
|
||||||
nativeID={undefined}
|
nativeID={undefined}
|
||||||
|
@ -143,16 +156,28 @@ exports[`render no icon 1`] = `
|
||||||
onResponderTerminationRequest={[Function]}
|
onResponderTerminationRequest={[Function]}
|
||||||
onStartShouldSetResponder={[Function]}
|
onStartShouldSetResponder={[Function]}
|
||||||
style={
|
style={
|
||||||
|
Array [
|
||||||
Object {
|
Object {
|
||||||
"alignItems": "center",
|
"backgroundColor": "transparent",
|
||||||
"flexDirection": "row",
|
},
|
||||||
"opacity": 1,
|
undefined,
|
||||||
"paddingHorizontal": 16,
|
]
|
||||||
"paddingVertical": 10,
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
testID={undefined}
|
testID={undefined}
|
||||||
tvParallaxProperties={undefined}
|
tvParallaxProperties={undefined}
|
||||||
|
>
|
||||||
|
<View
|
||||||
|
style={
|
||||||
|
Array [
|
||||||
|
Object {
|
||||||
|
"alignItems": "center",
|
||||||
|
"flexDirection": "row",
|
||||||
|
"paddingHorizontal": 16,
|
||||||
|
"paddingVertical": 10,
|
||||||
|
},
|
||||||
|
undefined,
|
||||||
|
]
|
||||||
|
}
|
||||||
>
|
>
|
||||||
<View
|
<View
|
||||||
style={
|
style={
|
||||||
|
@ -246,6 +271,7 @@ exports[`render no icon 1`] = `
|
||||||
</View>
|
</View>
|
||||||
</View>
|
</View>
|
||||||
</View>
|
</View>
|
||||||
|
</View>
|
||||||
`;
|
`;
|
||||||
|
|
||||||
exports[`render private group 1`] = `
|
exports[`render private group 1`] = `
|
||||||
|
@ -255,7 +281,7 @@ exports[`render private group 1`] = `
|
||||||
accessibilityLabel="private-group, last message Nov 10"
|
accessibilityLabel="private-group, last message Nov 10"
|
||||||
accessibilityTraits="selected"
|
accessibilityTraits="selected"
|
||||||
accessible={true}
|
accessible={true}
|
||||||
collapsable={undefined}
|
hasTVPreferredFocus={undefined}
|
||||||
hitSlop={undefined}
|
hitSlop={undefined}
|
||||||
isTVSelectable={true}
|
isTVSelectable={true}
|
||||||
nativeID={undefined}
|
nativeID={undefined}
|
||||||
|
@ -267,16 +293,28 @@ exports[`render private group 1`] = `
|
||||||
onResponderTerminationRequest={[Function]}
|
onResponderTerminationRequest={[Function]}
|
||||||
onStartShouldSetResponder={[Function]}
|
onStartShouldSetResponder={[Function]}
|
||||||
style={
|
style={
|
||||||
|
Array [
|
||||||
Object {
|
Object {
|
||||||
"alignItems": "center",
|
"backgroundColor": "transparent",
|
||||||
"flexDirection": "row",
|
},
|
||||||
"opacity": 1,
|
undefined,
|
||||||
"paddingHorizontal": 16,
|
]
|
||||||
"paddingVertical": 10,
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
testID={undefined}
|
testID={undefined}
|
||||||
tvParallaxProperties={undefined}
|
tvParallaxProperties={undefined}
|
||||||
|
>
|
||||||
|
<View
|
||||||
|
style={
|
||||||
|
Array [
|
||||||
|
Object {
|
||||||
|
"alignItems": "center",
|
||||||
|
"flexDirection": "row",
|
||||||
|
"paddingHorizontal": 16,
|
||||||
|
"paddingVertical": 10,
|
||||||
|
},
|
||||||
|
undefined,
|
||||||
|
]
|
||||||
|
}
|
||||||
>
|
>
|
||||||
<View
|
<View
|
||||||
style={
|
style={
|
||||||
|
@ -369,6 +407,7 @@ exports[`render private group 1`] = `
|
||||||
</Text>
|
</Text>
|
||||||
</View>
|
</View>
|
||||||
</View>
|
</View>
|
||||||
|
</View>
|
||||||
|
|
||||||
</View>
|
</View>
|
||||||
`;
|
`;
|
||||||
|
@ -380,7 +419,7 @@ exports[`render unread +999 1`] = `
|
||||||
accessibilityLabel="name, 1000 alerts, last message Nov 10"
|
accessibilityLabel="name, 1000 alerts, last message Nov 10"
|
||||||
accessibilityTraits="selected"
|
accessibilityTraits="selected"
|
||||||
accessible={true}
|
accessible={true}
|
||||||
collapsable={undefined}
|
hasTVPreferredFocus={undefined}
|
||||||
hitSlop={undefined}
|
hitSlop={undefined}
|
||||||
isTVSelectable={true}
|
isTVSelectable={true}
|
||||||
nativeID={undefined}
|
nativeID={undefined}
|
||||||
|
@ -392,16 +431,28 @@ exports[`render unread +999 1`] = `
|
||||||
onResponderTerminationRequest={[Function]}
|
onResponderTerminationRequest={[Function]}
|
||||||
onStartShouldSetResponder={[Function]}
|
onStartShouldSetResponder={[Function]}
|
||||||
style={
|
style={
|
||||||
|
Array [
|
||||||
Object {
|
Object {
|
||||||
"alignItems": "center",
|
"backgroundColor": "transparent",
|
||||||
"flexDirection": "row",
|
},
|
||||||
"opacity": 1,
|
undefined,
|
||||||
"paddingHorizontal": 16,
|
]
|
||||||
"paddingVertical": 10,
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
testID={undefined}
|
testID={undefined}
|
||||||
tvParallaxProperties={undefined}
|
tvParallaxProperties={undefined}
|
||||||
|
>
|
||||||
|
<View
|
||||||
|
style={
|
||||||
|
Array [
|
||||||
|
Object {
|
||||||
|
"alignItems": "center",
|
||||||
|
"flexDirection": "row",
|
||||||
|
"paddingHorizontal": 16,
|
||||||
|
"paddingVertical": 10,
|
||||||
|
},
|
||||||
|
undefined,
|
||||||
|
]
|
||||||
|
}
|
||||||
>
|
>
|
||||||
<View
|
<View
|
||||||
style={
|
style={
|
||||||
|
@ -504,6 +555,7 @@ exports[`render unread +999 1`] = `
|
||||||
</Text>
|
</Text>
|
||||||
</View>
|
</View>
|
||||||
</View>
|
</View>
|
||||||
|
</View>
|
||||||
`;
|
`;
|
||||||
|
|
||||||
exports[`render unread 1`] = `
|
exports[`render unread 1`] = `
|
||||||
|
@ -513,7 +565,7 @@ exports[`render unread 1`] = `
|
||||||
accessibilityLabel="name, 1 alert, last message Nov 10"
|
accessibilityLabel="name, 1 alert, last message Nov 10"
|
||||||
accessibilityTraits="selected"
|
accessibilityTraits="selected"
|
||||||
accessible={true}
|
accessible={true}
|
||||||
collapsable={undefined}
|
hasTVPreferredFocus={undefined}
|
||||||
hitSlop={undefined}
|
hitSlop={undefined}
|
||||||
isTVSelectable={true}
|
isTVSelectable={true}
|
||||||
nativeID={undefined}
|
nativeID={undefined}
|
||||||
|
@ -525,16 +577,28 @@ exports[`render unread 1`] = `
|
||||||
onResponderTerminationRequest={[Function]}
|
onResponderTerminationRequest={[Function]}
|
||||||
onStartShouldSetResponder={[Function]}
|
onStartShouldSetResponder={[Function]}
|
||||||
style={
|
style={
|
||||||
|
Array [
|
||||||
Object {
|
Object {
|
||||||
"alignItems": "center",
|
"backgroundColor": "transparent",
|
||||||
"flexDirection": "row",
|
},
|
||||||
"opacity": 1,
|
undefined,
|
||||||
"paddingHorizontal": 16,
|
]
|
||||||
"paddingVertical": 10,
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
testID={undefined}
|
testID={undefined}
|
||||||
tvParallaxProperties={undefined}
|
tvParallaxProperties={undefined}
|
||||||
|
>
|
||||||
|
<View
|
||||||
|
style={
|
||||||
|
Array [
|
||||||
|
Object {
|
||||||
|
"alignItems": "center",
|
||||||
|
"flexDirection": "row",
|
||||||
|
"paddingHorizontal": 16,
|
||||||
|
"paddingVertical": 10,
|
||||||
|
},
|
||||||
|
undefined,
|
||||||
|
]
|
||||||
|
}
|
||||||
>
|
>
|
||||||
<View
|
<View
|
||||||
style={
|
style={
|
||||||
|
@ -637,6 +701,7 @@ exports[`render unread 1`] = `
|
||||||
</Text>
|
</Text>
|
||||||
</View>
|
</View>
|
||||||
</View>
|
</View>
|
||||||
|
</View>
|
||||||
`;
|
`;
|
||||||
|
|
||||||
exports[`renders correctly 1`] = `
|
exports[`renders correctly 1`] = `
|
||||||
|
@ -646,7 +711,7 @@ exports[`renders correctly 1`] = `
|
||||||
accessibilityLabel="name, last message Nov 10"
|
accessibilityLabel="name, last message Nov 10"
|
||||||
accessibilityTraits="selected"
|
accessibilityTraits="selected"
|
||||||
accessible={true}
|
accessible={true}
|
||||||
collapsable={undefined}
|
hasTVPreferredFocus={undefined}
|
||||||
hitSlop={undefined}
|
hitSlop={undefined}
|
||||||
isTVSelectable={true}
|
isTVSelectable={true}
|
||||||
nativeID={undefined}
|
nativeID={undefined}
|
||||||
|
@ -658,16 +723,28 @@ exports[`renders correctly 1`] = `
|
||||||
onResponderTerminationRequest={[Function]}
|
onResponderTerminationRequest={[Function]}
|
||||||
onStartShouldSetResponder={[Function]}
|
onStartShouldSetResponder={[Function]}
|
||||||
style={
|
style={
|
||||||
|
Array [
|
||||||
Object {
|
Object {
|
||||||
"alignItems": "center",
|
"backgroundColor": "transparent",
|
||||||
"flexDirection": "row",
|
},
|
||||||
"opacity": 1,
|
undefined,
|
||||||
"paddingHorizontal": 16,
|
]
|
||||||
"paddingVertical": 10,
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
testID={undefined}
|
testID={undefined}
|
||||||
tvParallaxProperties={undefined}
|
tvParallaxProperties={undefined}
|
||||||
|
>
|
||||||
|
<View
|
||||||
|
style={
|
||||||
|
Array [
|
||||||
|
Object {
|
||||||
|
"alignItems": "center",
|
||||||
|
"flexDirection": "row",
|
||||||
|
"paddingHorizontal": 16,
|
||||||
|
"paddingVertical": 10,
|
||||||
|
},
|
||||||
|
undefined,
|
||||||
|
]
|
||||||
|
}
|
||||||
>
|
>
|
||||||
<View
|
<View
|
||||||
style={
|
style={
|
||||||
|
@ -750,4 +827,5 @@ exports[`renders correctly 1`] = `
|
||||||
</View>
|
</View>
|
||||||
</View>
|
</View>
|
||||||
</View>
|
</View>
|
||||||
|
</View>
|
||||||
`;
|
`;
|
||||||
|
|
|
@ -159,7 +159,7 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
|
||||||
accessibilityLabel="rocket.cat, last message Nov 10"
|
accessibilityLabel="rocket.cat, last message Nov 10"
|
||||||
accessibilityTraits="selected"
|
accessibilityTraits="selected"
|
||||||
accessible={true}
|
accessible={true}
|
||||||
collapsable={undefined}
|
hasTVPreferredFocus={undefined}
|
||||||
hitSlop={undefined}
|
hitSlop={undefined}
|
||||||
isTVSelectable={true}
|
isTVSelectable={true}
|
||||||
nativeID={undefined}
|
nativeID={undefined}
|
||||||
|
@ -171,16 +171,28 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
|
||||||
onResponderTerminationRequest={[Function]}
|
onResponderTerminationRequest={[Function]}
|
||||||
onStartShouldSetResponder={[Function]}
|
onStartShouldSetResponder={[Function]}
|
||||||
style={
|
style={
|
||||||
|
Array [
|
||||||
Object {
|
Object {
|
||||||
"alignItems": "center",
|
"backgroundColor": "transparent",
|
||||||
"flexDirection": "row",
|
},
|
||||||
"opacity": 1,
|
undefined,
|
||||||
"paddingHorizontal": 16,
|
]
|
||||||
"paddingVertical": 10,
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
testID={undefined}
|
testID={undefined}
|
||||||
tvParallaxProperties={undefined}
|
tvParallaxProperties={undefined}
|
||||||
|
>
|
||||||
|
<View
|
||||||
|
style={
|
||||||
|
Array [
|
||||||
|
Object {
|
||||||
|
"alignItems": "center",
|
||||||
|
"flexDirection": "row",
|
||||||
|
"paddingHorizontal": 16,
|
||||||
|
"paddingVertical": 10,
|
||||||
|
},
|
||||||
|
undefined,
|
||||||
|
]
|
||||||
|
}
|
||||||
>
|
>
|
||||||
<View
|
<View
|
||||||
style={
|
style={
|
||||||
|
@ -262,12 +274,13 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
|
||||||
</Text>
|
</Text>
|
||||||
</View>
|
</View>
|
||||||
</View>
|
</View>
|
||||||
|
</View>
|
||||||
<View
|
<View
|
||||||
accessibilityComponentType={undefined}
|
accessibilityComponentType={undefined}
|
||||||
accessibilityLabel="rocket.cat, last message Nov 10"
|
accessibilityLabel="rocket.cat, last message Nov 10"
|
||||||
accessibilityTraits="selected"
|
accessibilityTraits="selected"
|
||||||
accessible={true}
|
accessible={true}
|
||||||
collapsable={undefined}
|
hasTVPreferredFocus={undefined}
|
||||||
hitSlop={undefined}
|
hitSlop={undefined}
|
||||||
isTVSelectable={true}
|
isTVSelectable={true}
|
||||||
nativeID={undefined}
|
nativeID={undefined}
|
||||||
|
@ -279,16 +292,28 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
|
||||||
onResponderTerminationRequest={[Function]}
|
onResponderTerminationRequest={[Function]}
|
||||||
onStartShouldSetResponder={[Function]}
|
onStartShouldSetResponder={[Function]}
|
||||||
style={
|
style={
|
||||||
|
Array [
|
||||||
Object {
|
Object {
|
||||||
"alignItems": "center",
|
"backgroundColor": "transparent",
|
||||||
"flexDirection": "row",
|
},
|
||||||
"opacity": 1,
|
undefined,
|
||||||
"paddingHorizontal": 16,
|
]
|
||||||
"paddingVertical": 10,
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
testID={undefined}
|
testID={undefined}
|
||||||
tvParallaxProperties={undefined}
|
tvParallaxProperties={undefined}
|
||||||
|
>
|
||||||
|
<View
|
||||||
|
style={
|
||||||
|
Array [
|
||||||
|
Object {
|
||||||
|
"alignItems": "center",
|
||||||
|
"flexDirection": "row",
|
||||||
|
"paddingHorizontal": 16,
|
||||||
|
"paddingVertical": 10,
|
||||||
|
},
|
||||||
|
undefined,
|
||||||
|
]
|
||||||
|
}
|
||||||
>
|
>
|
||||||
<View
|
<View
|
||||||
style={
|
style={
|
||||||
|
@ -372,12 +397,13 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
|
||||||
</Text>
|
</Text>
|
||||||
</View>
|
</View>
|
||||||
</View>
|
</View>
|
||||||
|
</View>
|
||||||
<View
|
<View
|
||||||
accessibilityComponentType={undefined}
|
accessibilityComponentType={undefined}
|
||||||
accessibilityLabel="rocket.cat, 1 alert, last message Nov 10"
|
accessibilityLabel="rocket.cat, 1 alert, last message Nov 10"
|
||||||
accessibilityTraits="selected"
|
accessibilityTraits="selected"
|
||||||
accessible={true}
|
accessible={true}
|
||||||
collapsable={undefined}
|
hasTVPreferredFocus={undefined}
|
||||||
hitSlop={undefined}
|
hitSlop={undefined}
|
||||||
isTVSelectable={true}
|
isTVSelectable={true}
|
||||||
nativeID={undefined}
|
nativeID={undefined}
|
||||||
|
@ -389,16 +415,28 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
|
||||||
onResponderTerminationRequest={[Function]}
|
onResponderTerminationRequest={[Function]}
|
||||||
onStartShouldSetResponder={[Function]}
|
onStartShouldSetResponder={[Function]}
|
||||||
style={
|
style={
|
||||||
|
Array [
|
||||||
Object {
|
Object {
|
||||||
"alignItems": "center",
|
"backgroundColor": "transparent",
|
||||||
"flexDirection": "row",
|
},
|
||||||
"opacity": 1,
|
undefined,
|
||||||
"paddingHorizontal": 16,
|
]
|
||||||
"paddingVertical": 10,
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
testID={undefined}
|
testID={undefined}
|
||||||
tvParallaxProperties={undefined}
|
tvParallaxProperties={undefined}
|
||||||
|
>
|
||||||
|
<View
|
||||||
|
style={
|
||||||
|
Array [
|
||||||
|
Object {
|
||||||
|
"alignItems": "center",
|
||||||
|
"flexDirection": "row",
|
||||||
|
"paddingHorizontal": 16,
|
||||||
|
"paddingVertical": 10,
|
||||||
|
},
|
||||||
|
undefined,
|
||||||
|
]
|
||||||
|
}
|
||||||
>
|
>
|
||||||
<View
|
<View
|
||||||
style={
|
style={
|
||||||
|
@ -500,12 +538,13 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
|
||||||
1
|
1
|
||||||
</Text>
|
</Text>
|
||||||
</View>
|
</View>
|
||||||
|
</View>
|
||||||
<View
|
<View
|
||||||
accessibilityComponentType={undefined}
|
accessibilityComponentType={undefined}
|
||||||
accessibilityLabel="Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, 9 alerts, last message Nov 10"
|
accessibilityLabel="Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, 9 alerts, last message Nov 10"
|
||||||
accessibilityTraits="selected"
|
accessibilityTraits="selected"
|
||||||
accessible={true}
|
accessible={true}
|
||||||
collapsable={undefined}
|
hasTVPreferredFocus={undefined}
|
||||||
hitSlop={undefined}
|
hitSlop={undefined}
|
||||||
isTVSelectable={true}
|
isTVSelectable={true}
|
||||||
nativeID={undefined}
|
nativeID={undefined}
|
||||||
|
@ -517,16 +556,28 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
|
||||||
onResponderTerminationRequest={[Function]}
|
onResponderTerminationRequest={[Function]}
|
||||||
onStartShouldSetResponder={[Function]}
|
onStartShouldSetResponder={[Function]}
|
||||||
style={
|
style={
|
||||||
|
Array [
|
||||||
Object {
|
Object {
|
||||||
"alignItems": "center",
|
"backgroundColor": "transparent",
|
||||||
"flexDirection": "row",
|
},
|
||||||
"opacity": 1,
|
undefined,
|
||||||
"paddingHorizontal": 16,
|
]
|
||||||
"paddingVertical": 10,
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
testID={undefined}
|
testID={undefined}
|
||||||
tvParallaxProperties={undefined}
|
tvParallaxProperties={undefined}
|
||||||
|
>
|
||||||
|
<View
|
||||||
|
style={
|
||||||
|
Array [
|
||||||
|
Object {
|
||||||
|
"alignItems": "center",
|
||||||
|
"flexDirection": "row",
|
||||||
|
"paddingHorizontal": 16,
|
||||||
|
"paddingVertical": 10,
|
||||||
|
},
|
||||||
|
undefined,
|
||||||
|
]
|
||||||
|
}
|
||||||
>
|
>
|
||||||
<View
|
<View
|
||||||
style={
|
style={
|
||||||
|
@ -630,12 +681,13 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
|
||||||
9
|
9
|
||||||
</Text>
|
</Text>
|
||||||
</View>
|
</View>
|
||||||
|
</View>
|
||||||
<View
|
<View
|
||||||
accessibilityComponentType={undefined}
|
accessibilityComponentType={undefined}
|
||||||
accessibilityLabel="Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, 99 alerts, last message Nov 10"
|
accessibilityLabel="Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, 99 alerts, last message Nov 10"
|
||||||
accessibilityTraits="selected"
|
accessibilityTraits="selected"
|
||||||
accessible={true}
|
accessible={true}
|
||||||
collapsable={undefined}
|
hasTVPreferredFocus={undefined}
|
||||||
hitSlop={undefined}
|
hitSlop={undefined}
|
||||||
isTVSelectable={true}
|
isTVSelectable={true}
|
||||||
nativeID={undefined}
|
nativeID={undefined}
|
||||||
|
@ -647,16 +699,28 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
|
||||||
onResponderTerminationRequest={[Function]}
|
onResponderTerminationRequest={[Function]}
|
||||||
onStartShouldSetResponder={[Function]}
|
onStartShouldSetResponder={[Function]}
|
||||||
style={
|
style={
|
||||||
|
Array [
|
||||||
Object {
|
Object {
|
||||||
"alignItems": "center",
|
"backgroundColor": "transparent",
|
||||||
"flexDirection": "row",
|
},
|
||||||
"opacity": 1,
|
undefined,
|
||||||
"paddingHorizontal": 16,
|
]
|
||||||
"paddingVertical": 10,
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
testID={undefined}
|
testID={undefined}
|
||||||
tvParallaxProperties={undefined}
|
tvParallaxProperties={undefined}
|
||||||
|
>
|
||||||
|
<View
|
||||||
|
style={
|
||||||
|
Array [
|
||||||
|
Object {
|
||||||
|
"alignItems": "center",
|
||||||
|
"flexDirection": "row",
|
||||||
|
"paddingHorizontal": 16,
|
||||||
|
"paddingVertical": 10,
|
||||||
|
},
|
||||||
|
undefined,
|
||||||
|
]
|
||||||
|
}
|
||||||
>
|
>
|
||||||
<View
|
<View
|
||||||
style={
|
style={
|
||||||
|
@ -758,12 +822,13 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
|
||||||
99
|
99
|
||||||
</Text>
|
</Text>
|
||||||
</View>
|
</View>
|
||||||
|
</View>
|
||||||
<View
|
<View
|
||||||
accessibilityComponentType={undefined}
|
accessibilityComponentType={undefined}
|
||||||
accessibilityLabel="Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, 100 alerts, last message Nov 10"
|
accessibilityLabel="Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, 100 alerts, last message Nov 10"
|
||||||
accessibilityTraits="selected"
|
accessibilityTraits="selected"
|
||||||
accessible={true}
|
accessible={true}
|
||||||
collapsable={undefined}
|
hasTVPreferredFocus={undefined}
|
||||||
hitSlop={undefined}
|
hitSlop={undefined}
|
||||||
isTVSelectable={true}
|
isTVSelectable={true}
|
||||||
nativeID={undefined}
|
nativeID={undefined}
|
||||||
|
@ -775,16 +840,28 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
|
||||||
onResponderTerminationRequest={[Function]}
|
onResponderTerminationRequest={[Function]}
|
||||||
onStartShouldSetResponder={[Function]}
|
onStartShouldSetResponder={[Function]}
|
||||||
style={
|
style={
|
||||||
|
Array [
|
||||||
Object {
|
Object {
|
||||||
"alignItems": "center",
|
"backgroundColor": "transparent",
|
||||||
"flexDirection": "row",
|
},
|
||||||
"opacity": 1,
|
undefined,
|
||||||
"paddingHorizontal": 16,
|
]
|
||||||
"paddingVertical": 10,
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
testID={undefined}
|
testID={undefined}
|
||||||
tvParallaxProperties={undefined}
|
tvParallaxProperties={undefined}
|
||||||
|
>
|
||||||
|
<View
|
||||||
|
style={
|
||||||
|
Array [
|
||||||
|
Object {
|
||||||
|
"alignItems": "center",
|
||||||
|
"flexDirection": "row",
|
||||||
|
"paddingHorizontal": 16,
|
||||||
|
"paddingVertical": 10,
|
||||||
|
},
|
||||||
|
undefined,
|
||||||
|
]
|
||||||
|
}
|
||||||
>
|
>
|
||||||
<View
|
<View
|
||||||
style={
|
style={
|
||||||
|
@ -886,12 +963,13 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
|
||||||
100
|
100
|
||||||
</Text>
|
</Text>
|
||||||
</View>
|
</View>
|
||||||
|
</View>
|
||||||
<View
|
<View
|
||||||
accessibilityComponentType={undefined}
|
accessibilityComponentType={undefined}
|
||||||
accessibilityLabel="Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, 100000 alerts, last message Nov 10"
|
accessibilityLabel="Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, 100000 alerts, last message Nov 10"
|
||||||
accessibilityTraits="selected"
|
accessibilityTraits="selected"
|
||||||
accessible={true}
|
accessible={true}
|
||||||
collapsable={undefined}
|
hasTVPreferredFocus={undefined}
|
||||||
hitSlop={undefined}
|
hitSlop={undefined}
|
||||||
isTVSelectable={true}
|
isTVSelectable={true}
|
||||||
nativeID={undefined}
|
nativeID={undefined}
|
||||||
|
@ -903,16 +981,28 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
|
||||||
onResponderTerminationRequest={[Function]}
|
onResponderTerminationRequest={[Function]}
|
||||||
onStartShouldSetResponder={[Function]}
|
onStartShouldSetResponder={[Function]}
|
||||||
style={
|
style={
|
||||||
|
Array [
|
||||||
Object {
|
Object {
|
||||||
"alignItems": "center",
|
"backgroundColor": "transparent",
|
||||||
"flexDirection": "row",
|
},
|
||||||
"opacity": 1,
|
undefined,
|
||||||
"paddingHorizontal": 16,
|
]
|
||||||
"paddingVertical": 10,
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
testID={undefined}
|
testID={undefined}
|
||||||
tvParallaxProperties={undefined}
|
tvParallaxProperties={undefined}
|
||||||
|
>
|
||||||
|
<View
|
||||||
|
style={
|
||||||
|
Array [
|
||||||
|
Object {
|
||||||
|
"alignItems": "center",
|
||||||
|
"flexDirection": "row",
|
||||||
|
"paddingHorizontal": 16,
|
||||||
|
"paddingVertical": 10,
|
||||||
|
},
|
||||||
|
undefined,
|
||||||
|
]
|
||||||
|
}
|
||||||
>
|
>
|
||||||
<View
|
<View
|
||||||
style={
|
style={
|
||||||
|
@ -1014,12 +1104,13 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
|
||||||
999+
|
999+
|
||||||
</Text>
|
</Text>
|
||||||
</View>
|
</View>
|
||||||
|
</View>
|
||||||
<View
|
<View
|
||||||
accessibilityComponentType={undefined}
|
accessibilityComponentType={undefined}
|
||||||
accessibilityLabel="Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, 100000 alerts, you were mentioned, last message Nov 10"
|
accessibilityLabel="Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, 100000 alerts, you were mentioned, last message Nov 10"
|
||||||
accessibilityTraits="selected"
|
accessibilityTraits="selected"
|
||||||
accessible={true}
|
accessible={true}
|
||||||
collapsable={undefined}
|
hasTVPreferredFocus={undefined}
|
||||||
hitSlop={undefined}
|
hitSlop={undefined}
|
||||||
isTVSelectable={true}
|
isTVSelectable={true}
|
||||||
nativeID={undefined}
|
nativeID={undefined}
|
||||||
|
@ -1031,16 +1122,28 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
|
||||||
onResponderTerminationRequest={[Function]}
|
onResponderTerminationRequest={[Function]}
|
||||||
onStartShouldSetResponder={[Function]}
|
onStartShouldSetResponder={[Function]}
|
||||||
style={
|
style={
|
||||||
|
Array [
|
||||||
Object {
|
Object {
|
||||||
"alignItems": "center",
|
"backgroundColor": "transparent",
|
||||||
"flexDirection": "row",
|
},
|
||||||
"opacity": 1,
|
undefined,
|
||||||
"paddingHorizontal": 16,
|
]
|
||||||
"paddingVertical": 10,
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
testID={undefined}
|
testID={undefined}
|
||||||
tvParallaxProperties={undefined}
|
tvParallaxProperties={undefined}
|
||||||
|
>
|
||||||
|
<View
|
||||||
|
style={
|
||||||
|
Array [
|
||||||
|
Object {
|
||||||
|
"alignItems": "center",
|
||||||
|
"flexDirection": "row",
|
||||||
|
"paddingHorizontal": 16,
|
||||||
|
"paddingVertical": 10,
|
||||||
|
},
|
||||||
|
undefined,
|
||||||
|
]
|
||||||
|
}
|
||||||
>
|
>
|
||||||
<View
|
<View
|
||||||
style={
|
style={
|
||||||
|
@ -1142,12 +1245,13 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
|
||||||
@ 999+
|
@ 999+
|
||||||
</Text>
|
</Text>
|
||||||
</View>
|
</View>
|
||||||
|
</View>
|
||||||
<View
|
<View
|
||||||
accessibilityComponentType={undefined}
|
accessibilityComponentType={undefined}
|
||||||
accessibilityLabel="W, last message Nov 10"
|
accessibilityLabel="W, last message Nov 10"
|
||||||
accessibilityTraits="selected"
|
accessibilityTraits="selected"
|
||||||
accessible={true}
|
accessible={true}
|
||||||
collapsable={undefined}
|
hasTVPreferredFocus={undefined}
|
||||||
hitSlop={undefined}
|
hitSlop={undefined}
|
||||||
isTVSelectable={true}
|
isTVSelectable={true}
|
||||||
nativeID={undefined}
|
nativeID={undefined}
|
||||||
|
@ -1159,16 +1263,28 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
|
||||||
onResponderTerminationRequest={[Function]}
|
onResponderTerminationRequest={[Function]}
|
||||||
onStartShouldSetResponder={[Function]}
|
onStartShouldSetResponder={[Function]}
|
||||||
style={
|
style={
|
||||||
|
Array [
|
||||||
Object {
|
Object {
|
||||||
"alignItems": "center",
|
"backgroundColor": "transparent",
|
||||||
"flexDirection": "row",
|
},
|
||||||
"opacity": 1,
|
undefined,
|
||||||
"paddingHorizontal": 16,
|
]
|
||||||
"paddingVertical": 10,
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
testID={undefined}
|
testID={undefined}
|
||||||
tvParallaxProperties={undefined}
|
tvParallaxProperties={undefined}
|
||||||
|
>
|
||||||
|
<View
|
||||||
|
style={
|
||||||
|
Array [
|
||||||
|
Object {
|
||||||
|
"alignItems": "center",
|
||||||
|
"flexDirection": "row",
|
||||||
|
"paddingHorizontal": 16,
|
||||||
|
"paddingVertical": 10,
|
||||||
|
},
|
||||||
|
undefined,
|
||||||
|
]
|
||||||
|
}
|
||||||
>
|
>
|
||||||
<View
|
<View
|
||||||
style={
|
style={
|
||||||
|
@ -1250,12 +1366,13 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
|
||||||
</Text>
|
</Text>
|
||||||
</View>
|
</View>
|
||||||
</View>
|
</View>
|
||||||
|
</View>
|
||||||
<View
|
<View
|
||||||
accessibilityComponentType={undefined}
|
accessibilityComponentType={undefined}
|
||||||
accessibilityLabel="WW, last message Nov 10"
|
accessibilityLabel="WW, last message Nov 10"
|
||||||
accessibilityTraits="selected"
|
accessibilityTraits="selected"
|
||||||
accessible={true}
|
accessible={true}
|
||||||
collapsable={undefined}
|
hasTVPreferredFocus={undefined}
|
||||||
hitSlop={undefined}
|
hitSlop={undefined}
|
||||||
isTVSelectable={true}
|
isTVSelectable={true}
|
||||||
nativeID={undefined}
|
nativeID={undefined}
|
||||||
|
@ -1267,16 +1384,28 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
|
||||||
onResponderTerminationRequest={[Function]}
|
onResponderTerminationRequest={[Function]}
|
||||||
onStartShouldSetResponder={[Function]}
|
onStartShouldSetResponder={[Function]}
|
||||||
style={
|
style={
|
||||||
|
Array [
|
||||||
Object {
|
Object {
|
||||||
"alignItems": "center",
|
"backgroundColor": "transparent",
|
||||||
"flexDirection": "row",
|
},
|
||||||
"opacity": 1,
|
undefined,
|
||||||
"paddingHorizontal": 16,
|
]
|
||||||
"paddingVertical": 10,
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
testID={undefined}
|
testID={undefined}
|
||||||
tvParallaxProperties={undefined}
|
tvParallaxProperties={undefined}
|
||||||
|
>
|
||||||
|
<View
|
||||||
|
style={
|
||||||
|
Array [
|
||||||
|
Object {
|
||||||
|
"alignItems": "center",
|
||||||
|
"flexDirection": "row",
|
||||||
|
"paddingHorizontal": 16,
|
||||||
|
"paddingVertical": 10,
|
||||||
|
},
|
||||||
|
undefined,
|
||||||
|
]
|
||||||
|
}
|
||||||
>
|
>
|
||||||
<View
|
<View
|
||||||
style={
|
style={
|
||||||
|
@ -1358,12 +1487,13 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
|
||||||
</Text>
|
</Text>
|
||||||
</View>
|
</View>
|
||||||
</View>
|
</View>
|
||||||
|
</View>
|
||||||
<View
|
<View
|
||||||
accessibilityComponentType={undefined}
|
accessibilityComponentType={undefined}
|
||||||
accessibilityLabel=", last message Nov 10"
|
accessibilityLabel=", last message Nov 10"
|
||||||
accessibilityTraits="selected"
|
accessibilityTraits="selected"
|
||||||
accessible={true}
|
accessible={true}
|
||||||
collapsable={undefined}
|
hasTVPreferredFocus={undefined}
|
||||||
hitSlop={undefined}
|
hitSlop={undefined}
|
||||||
isTVSelectable={true}
|
isTVSelectable={true}
|
||||||
nativeID={undefined}
|
nativeID={undefined}
|
||||||
|
@ -1375,16 +1505,28 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
|
||||||
onResponderTerminationRequest={[Function]}
|
onResponderTerminationRequest={[Function]}
|
||||||
onStartShouldSetResponder={[Function]}
|
onStartShouldSetResponder={[Function]}
|
||||||
style={
|
style={
|
||||||
|
Array [
|
||||||
Object {
|
Object {
|
||||||
"alignItems": "center",
|
"backgroundColor": "transparent",
|
||||||
"flexDirection": "row",
|
},
|
||||||
"opacity": 1,
|
undefined,
|
||||||
"paddingHorizontal": 16,
|
]
|
||||||
"paddingVertical": 10,
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
testID={undefined}
|
testID={undefined}
|
||||||
tvParallaxProperties={undefined}
|
tvParallaxProperties={undefined}
|
||||||
|
>
|
||||||
|
<View
|
||||||
|
style={
|
||||||
|
Array [
|
||||||
|
Object {
|
||||||
|
"alignItems": "center",
|
||||||
|
"flexDirection": "row",
|
||||||
|
"paddingHorizontal": 16,
|
||||||
|
"paddingVertical": 10,
|
||||||
|
},
|
||||||
|
undefined,
|
||||||
|
]
|
||||||
|
}
|
||||||
>
|
>
|
||||||
<View
|
<View
|
||||||
style={
|
style={
|
||||||
|
@ -1467,5 +1609,6 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
|
||||||
</View>
|
</View>
|
||||||
</View>
|
</View>
|
||||||
</View>
|
</View>
|
||||||
|
</View>
|
||||||
</RCTScrollView>
|
</RCTScrollView>
|
||||||
`;
|
`;
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import moment from 'moment';
|
import moment from 'moment';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import { View, Text, StyleSheet, TouchableOpacity } from 'react-native';
|
import { View, Text, StyleSheet } from 'react-native';
|
||||||
import Avatar from '../containers/Avatar';
|
import Avatar from '../containers/Avatar';
|
||||||
|
import Touch from '../utils/touch/index'; //eslint-disable-line
|
||||||
|
|
||||||
const styles = StyleSheet.create({
|
const styles = StyleSheet.create({
|
||||||
container: {
|
container: {
|
||||||
|
@ -112,14 +113,16 @@ export default class RoomItem extends React.PureComponent {
|
||||||
accessibilityLabel += `, last message ${ date }`;
|
accessibilityLabel += `, last message ${ date }`;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<TouchableOpacity onPress={this.props.onPress} style={[styles.container, favorite && styles.favorite]} accessibilityLabel={accessibilityLabel} accessibilityTraits='selected'>
|
<Touch onPress={this.props.onPress} underlayColor='#FFFFFF' activeOpacity={0.5} accessibilityLabel={accessibilityLabel} accessibilityTraits='selected'>
|
||||||
|
<View style={[styles.container, favorite && styles.favorite]}>
|
||||||
{this.icon}
|
{this.icon}
|
||||||
<View style={styles.roomNameView}>
|
<View style={styles.roomNameView}>
|
||||||
<Text style={[styles.roomName, alert && styles.alert]} ellipsizeMode='tail' numberOfLines={1}>{ name }</Text>
|
<Text style={[styles.roomName, alert && styles.alert]} ellipsizeMode='tail' numberOfLines={1}>{ name }</Text>
|
||||||
{_updatedAt ? <Text style={styles.update} ellipsizeMode='tail' numberOfLines={1}>{ date }</Text> : null}
|
{_updatedAt ? <Text style={styles.update} ellipsizeMode='tail' numberOfLines={1}>{ date }</Text> : null}
|
||||||
</View>
|
</View>
|
||||||
{this.renderNumber(unread, userMentions)}
|
{this.renderNumber(unread, userMentions)}
|
||||||
</TouchableOpacity>
|
</View>
|
||||||
|
</Touch>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
import { TouchableNativeFeedback } from 'react-native';
|
||||||
|
|
||||||
|
export default TouchableNativeFeedback;
|
|
@ -0,0 +1,3 @@
|
||||||
|
import { TouchableHighlight } from 'react-native';
|
||||||
|
|
||||||
|
export default TouchableHighlight;
|
Loading…
Reference in New Issue