This commit is contained in:
Guilherme Gazzo 2018-02-16 14:02:04 -02:00
parent 5f43aa2e38
commit 69e04a4c26
No known key found for this signature in database
GPG Key ID: 1F85C9AD922D0829
5 changed files with 556 additions and 245 deletions

View File

@ -3,7 +3,7 @@ import { Provider } from 'react-redux';
import { createStore, combineReducers } from 'redux'; import { createStore, combineReducers } from 'redux';
const reducers = combineReducers({settings:() => ({})}); const reducers = combineReducers({login:() => ({user: {}}), settings:() => ({})});
const store = createStore(reducers); const store = createStore(reducers);
import React from 'react'; import React from 'react';

View File

@ -33,7 +33,7 @@ exports[`render channel 1`] = `
style={ style={
Array [ Array [
Object { Object {
"alignItems": "flex-start", "alignItems": "center",
"borderBottomColor": "#ddd", "borderBottomColor": "#ddd",
"borderBottomWidth": 0.5, "borderBottomWidth": 0.5,
"flexDirection": "row", "flexDirection": "row",
@ -50,13 +50,12 @@ exports[`render channel 1`] = `
Object { Object {
"alignItems": "center", "alignItems": "center",
"justifyContent": "center", "justifyContent": "center",
"overflow": "hidden",
}, },
Object { Object {
"backgroundColor": "#00BCD4", "backgroundColor": "#00BCD4",
"borderRadius": 4, "borderRadius": 4,
"height": 56, "height": 46,
"width": 56, "width": 46,
}, },
undefined, undefined,
] ]
@ -77,7 +76,7 @@ exports[`render channel 1`] = `
"color": "#ffffff", "color": "#ffffff",
}, },
Object { Object {
"fontSize": 28, "fontSize": 23,
}, },
], ],
Object { Object {
@ -118,13 +117,15 @@ exports[`render channel 1`] = `
ellipsizeMode="tail" ellipsizeMode="tail"
numberOfLines={1} numberOfLines={1}
style={ style={
Array [
Object { Object {
"color": "#444", "color": "#444",
"flex": 1, "flex": 1,
"fontSize": 18, "fontSize": 18,
"fontWeight": "bold",
"marginRight": 8, "marginRight": 8,
} },
undefined,
]
} }
> >
general general
@ -149,10 +150,10 @@ exports[`render channel 1`] = `
<View <View
style={ style={
Object { Object {
"alignItems": "center", "alignItems": "flex-end",
"flex": 1, "flex": 1,
"flexDirection": "row", "flexDirection": "row",
"justifyContent": "center", "justifyContent": "flex-end",
"width": "100%", "width": "100%",
} }
} }
@ -196,7 +197,7 @@ exports[`render no icon 1`] = `
style={ style={
Array [ Array [
Object { Object {
"alignItems": "flex-start", "alignItems": "center",
"borderBottomColor": "#ddd", "borderBottomColor": "#ddd",
"borderBottomWidth": 0.5, "borderBottomWidth": 0.5,
"flexDirection": "row", "flexDirection": "row",
@ -213,13 +214,12 @@ exports[`render no icon 1`] = `
Object { Object {
"alignItems": "center", "alignItems": "center",
"justifyContent": "center", "justifyContent": "center",
"overflow": "hidden",
}, },
Object { Object {
"backgroundColor": "#3F51B5", "backgroundColor": "#3F51B5",
"borderRadius": 4, "borderRadius": 4,
"height": 56, "height": 46,
"width": 56, "width": 46,
}, },
undefined, undefined,
] ]
@ -240,7 +240,7 @@ exports[`render no icon 1`] = `
"color": "#ffffff", "color": "#ffffff",
}, },
Object { Object {
"fontSize": 28, "fontSize": 23,
}, },
], ],
Object { Object {
@ -281,13 +281,15 @@ exports[`render no icon 1`] = `
ellipsizeMode="tail" ellipsizeMode="tail"
numberOfLines={1} numberOfLines={1}
style={ style={
Array [
Object { Object {
"color": "#444", "color": "#444",
"flex": 1, "flex": 1,
"fontSize": 18, "fontSize": 18,
"fontWeight": "bold",
"marginRight": 8, "marginRight": 8,
} },
undefined,
]
} }
> >
name name
@ -312,10 +314,10 @@ exports[`render no icon 1`] = `
<View <View
style={ style={
Object { Object {
"alignItems": "center", "alignItems": "flex-end",
"flex": 1, "flex": 1,
"flexDirection": "row", "flexDirection": "row",
"justifyContent": "center", "justifyContent": "flex-end",
"width": "100%", "width": "100%",
} }
} }
@ -359,7 +361,7 @@ exports[`render private group 1`] = `
style={ style={
Array [ Array [
Object { Object {
"alignItems": "flex-start", "alignItems": "center",
"borderBottomColor": "#ddd", "borderBottomColor": "#ddd",
"borderBottomWidth": 0.5, "borderBottomWidth": 0.5,
"flexDirection": "row", "flexDirection": "row",
@ -376,13 +378,12 @@ exports[`render private group 1`] = `
Object { Object {
"alignItems": "center", "alignItems": "center",
"justifyContent": "center", "justifyContent": "center",
"overflow": "hidden",
}, },
Object { Object {
"backgroundColor": "#FF9800", "backgroundColor": "#FF9800",
"borderRadius": 4, "borderRadius": 4,
"height": 56, "height": 46,
"width": 56, "width": 46,
}, },
undefined, undefined,
] ]
@ -403,7 +404,7 @@ exports[`render private group 1`] = `
"color": "#ffffff", "color": "#ffffff",
}, },
Object { Object {
"fontSize": 28, "fontSize": 23,
}, },
], ],
Object { Object {
@ -444,13 +445,15 @@ exports[`render private group 1`] = `
ellipsizeMode="tail" ellipsizeMode="tail"
numberOfLines={1} numberOfLines={1}
style={ style={
Array [
Object { Object {
"color": "#444", "color": "#444",
"flex": 1, "flex": 1,
"fontSize": 18, "fontSize": 18,
"fontWeight": "bold",
"marginRight": 8, "marginRight": 8,
} },
undefined,
]
} }
> >
private-group private-group
@ -475,10 +478,10 @@ exports[`render private group 1`] = `
<View <View
style={ style={
Object { Object {
"alignItems": "center", "alignItems": "flex-end",
"flex": 1, "flex": 1,
"flexDirection": "row", "flexDirection": "row",
"justifyContent": "center", "justifyContent": "flex-end",
"width": "100%", "width": "100%",
} }
} }
@ -523,7 +526,7 @@ exports[`render unread +999 1`] = `
style={ style={
Array [ Array [
Object { Object {
"alignItems": "flex-start", "alignItems": "center",
"borderBottomColor": "#ddd", "borderBottomColor": "#ddd",
"borderBottomWidth": 0.5, "borderBottomWidth": 0.5,
"flexDirection": "row", "flexDirection": "row",
@ -540,13 +543,12 @@ exports[`render unread +999 1`] = `
Object { Object {
"alignItems": "center", "alignItems": "center",
"justifyContent": "center", "justifyContent": "center",
"overflow": "hidden",
}, },
Object { Object {
"backgroundColor": "#3F51B5", "backgroundColor": "#3F51B5",
"borderRadius": 4, "borderRadius": 4,
"height": 56, "height": 46,
"width": 56, "width": 46,
}, },
undefined, undefined,
] ]
@ -562,7 +564,7 @@ exports[`render unread +999 1`] = `
"color": "#ffffff", "color": "#ffffff",
}, },
Object { Object {
"fontSize": 28, "fontSize": 23,
}, },
] ]
} }
@ -570,6 +572,27 @@ exports[`render unread +999 1`] = `
NA NA
</Text> </Text>
<View
style={
Array [
Object {
"borderRadius": 16,
"height": 16,
"width": 16,
},
Object {
"borderColor": "#fff",
"borderWidth": 3,
"bottom": -3,
"position": "absolute",
"right": -3,
},
Object {
"backgroundColor": "#cbced1",
},
]
}
/>
</View> </View>
<View <View
style={ style={
@ -598,13 +621,15 @@ exports[`render unread +999 1`] = `
ellipsizeMode="tail" ellipsizeMode="tail"
numberOfLines={1} numberOfLines={1}
style={ style={
Array [
Object { Object {
"color": "#444", "color": "#444",
"flex": 1, "flex": 1,
"fontSize": 18, "fontSize": 18,
"fontWeight": "bold",
"marginRight": 8, "marginRight": 8,
} },
undefined,
]
} }
> >
name name
@ -629,10 +654,10 @@ exports[`render unread +999 1`] = `
<View <View
style={ style={
Object { Object {
"alignItems": "center", "alignItems": "flex-end",
"flex": 1, "flex": 1,
"flexDirection": "row", "flexDirection": "row",
"justifyContent": "center", "justifyContent": "flex-end",
"width": "100%", "width": "100%",
} }
} }
@ -699,7 +724,7 @@ exports[`render unread 1`] = `
style={ style={
Array [ Array [
Object { Object {
"alignItems": "flex-start", "alignItems": "center",
"borderBottomColor": "#ddd", "borderBottomColor": "#ddd",
"borderBottomWidth": 0.5, "borderBottomWidth": 0.5,
"flexDirection": "row", "flexDirection": "row",
@ -716,13 +741,12 @@ exports[`render unread 1`] = `
Object { Object {
"alignItems": "center", "alignItems": "center",
"justifyContent": "center", "justifyContent": "center",
"overflow": "hidden",
}, },
Object { Object {
"backgroundColor": "#3F51B5", "backgroundColor": "#3F51B5",
"borderRadius": 4, "borderRadius": 4,
"height": 56, "height": 46,
"width": 56, "width": 46,
}, },
undefined, undefined,
] ]
@ -738,7 +762,7 @@ exports[`render unread 1`] = `
"color": "#ffffff", "color": "#ffffff",
}, },
Object { Object {
"fontSize": 28, "fontSize": 23,
}, },
] ]
} }
@ -746,6 +770,27 @@ exports[`render unread 1`] = `
NA NA
</Text> </Text>
<View
style={
Array [
Object {
"borderRadius": 16,
"height": 16,
"width": 16,
},
Object {
"borderColor": "#fff",
"borderWidth": 3,
"bottom": -3,
"position": "absolute",
"right": -3,
},
Object {
"backgroundColor": "#cbced1",
},
]
}
/>
</View> </View>
<View <View
style={ style={
@ -774,13 +819,15 @@ exports[`render unread 1`] = `
ellipsizeMode="tail" ellipsizeMode="tail"
numberOfLines={1} numberOfLines={1}
style={ style={
Array [
Object { Object {
"color": "#444", "color": "#444",
"flex": 1, "flex": 1,
"fontSize": 18, "fontSize": 18,
"fontWeight": "bold",
"marginRight": 8, "marginRight": 8,
} },
undefined,
]
} }
> >
name name
@ -805,10 +852,10 @@ exports[`render unread 1`] = `
<View <View
style={ style={
Object { Object {
"alignItems": "center", "alignItems": "flex-end",
"flex": 1, "flex": 1,
"flexDirection": "row", "flexDirection": "row",
"justifyContent": "center", "justifyContent": "flex-end",
"width": "100%", "width": "100%",
} }
} }
@ -875,7 +922,7 @@ exports[`renders correctly 1`] = `
style={ style={
Array [ Array [
Object { Object {
"alignItems": "flex-start", "alignItems": "center",
"borderBottomColor": "#ddd", "borderBottomColor": "#ddd",
"borderBottomWidth": 0.5, "borderBottomWidth": 0.5,
"flexDirection": "row", "flexDirection": "row",
@ -892,13 +939,12 @@ exports[`renders correctly 1`] = `
Object { Object {
"alignItems": "center", "alignItems": "center",
"justifyContent": "center", "justifyContent": "center",
"overflow": "hidden",
}, },
Object { Object {
"backgroundColor": "#3F51B5", "backgroundColor": "#3F51B5",
"borderRadius": 4, "borderRadius": 4,
"height": 56, "height": 46,
"width": 56, "width": 46,
}, },
undefined, undefined,
] ]
@ -914,7 +960,7 @@ exports[`renders correctly 1`] = `
"color": "#ffffff", "color": "#ffffff",
}, },
Object { Object {
"fontSize": 28, "fontSize": 23,
}, },
] ]
} }
@ -922,6 +968,27 @@ exports[`renders correctly 1`] = `
NA NA
</Text> </Text>
<View
style={
Array [
Object {
"borderRadius": 16,
"height": 16,
"width": 16,
},
Object {
"borderColor": "#fff",
"borderWidth": 3,
"bottom": -3,
"position": "absolute",
"right": -3,
},
Object {
"backgroundColor": "#cbced1",
},
]
}
/>
</View> </View>
<View <View
style={ style={
@ -950,13 +1017,15 @@ exports[`renders correctly 1`] = `
ellipsizeMode="tail" ellipsizeMode="tail"
numberOfLines={1} numberOfLines={1}
style={ style={
Array [
Object { Object {
"color": "#444", "color": "#444",
"flex": 1, "flex": 1,
"fontSize": 18, "fontSize": 18,
"fontWeight": "bold",
"marginRight": 8, "marginRight": 8,
} },
undefined,
]
} }
> >
name name
@ -981,10 +1050,10 @@ exports[`renders correctly 1`] = `
<View <View
style={ style={
Object { Object {
"alignItems": "center", "alignItems": "flex-end",
"flex": 1, "flex": 1,
"flexDirection": "row", "flexDirection": "row",
"justifyContent": "center", "justifyContent": "flex-end",
"width": "100%", "width": "100%",
} }
} }

View File

@ -9,7 +9,6 @@ exports[`Storyshots Avatar avatar 1`] = `
Object { Object {
"alignItems": "center", "alignItems": "center",
"justifyContent": "center", "justifyContent": "center",
"overflow": "hidden",
}, },
Object { Object {
"backgroundColor": "#3F51B5", "backgroundColor": "#3F51B5",
@ -46,7 +45,6 @@ exports[`Storyshots Avatar avatar 1`] = `
Object { Object {
"alignItems": "center", "alignItems": "center",
"justifyContent": "center", "justifyContent": "center",
"overflow": "hidden",
}, },
Object { Object {
"backgroundColor": "#9C27B0", "backgroundColor": "#9C27B0",
@ -83,7 +81,6 @@ exports[`Storyshots Avatar avatar 1`] = `
Object { Object {
"alignItems": "center", "alignItems": "center",
"justifyContent": "center", "justifyContent": "center",
"overflow": "hidden",
}, },
Object { Object {
"backgroundColor": "#9C27B0", "backgroundColor": "#9C27B0",
@ -120,7 +117,6 @@ exports[`Storyshots Avatar avatar 1`] = `
Object { Object {
"alignItems": "center", "alignItems": "center",
"justifyContent": "center", "justifyContent": "center",
"overflow": "hidden",
}, },
Object { Object {
"backgroundColor": "#3F51B5", "backgroundColor": "#3F51B5",
@ -189,7 +185,7 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
style={ style={
Array [ Array [
Object { Object {
"alignItems": "flex-start", "alignItems": "center",
"borderBottomColor": "#ddd", "borderBottomColor": "#ddd",
"borderBottomWidth": 0.5, "borderBottomWidth": 0.5,
"flexDirection": "row", "flexDirection": "row",
@ -206,13 +202,12 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
Object { Object {
"alignItems": "center", "alignItems": "center",
"justifyContent": "center", "justifyContent": "center",
"overflow": "hidden",
}, },
Object { Object {
"backgroundColor": "#8BC34A", "backgroundColor": "#8BC34A",
"borderRadius": 4, "borderRadius": 4,
"height": 56, "height": 46,
"width": 56, "width": 46,
}, },
undefined, undefined,
] ]
@ -228,7 +223,7 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
"color": "#ffffff", "color": "#ffffff",
}, },
Object { Object {
"fontSize": 28, "fontSize": 23,
}, },
] ]
} }
@ -236,6 +231,27 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
RC RC
</Text> </Text>
<View
style={
Array [
Object {
"borderRadius": 16,
"height": 16,
"width": 16,
},
Object {
"borderColor": "#fff",
"borderWidth": 3,
"bottom": -3,
"position": "absolute",
"right": -3,
},
Object {
"backgroundColor": "#cbced1",
},
]
}
/>
</View> </View>
<View <View
style={ style={
@ -264,13 +280,15 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
ellipsizeMode="tail" ellipsizeMode="tail"
numberOfLines={1} numberOfLines={1}
style={ style={
Array [
Object { Object {
"color": "#444", "color": "#444",
"flex": 1, "flex": 1,
"fontSize": 18, "fontSize": 18,
"fontWeight": "bold",
"marginRight": 8, "marginRight": 8,
} },
undefined,
]
} }
> >
rocket.cat rocket.cat
@ -295,10 +313,10 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
<View <View
style={ style={
Object { Object {
"alignItems": "center", "alignItems": "flex-end",
"flex": 1, "flex": 1,
"flexDirection": "row", "flexDirection": "row",
"justifyContent": "center", "justifyContent": "flex-end",
"width": "100%", "width": "100%",
} }
} }
@ -337,7 +355,7 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
style={ style={
Array [ Array [
Object { Object {
"alignItems": "flex-start", "alignItems": "center",
"borderBottomColor": "#ddd", "borderBottomColor": "#ddd",
"borderBottomWidth": 0.5, "borderBottomWidth": 0.5,
"flexDirection": "row", "flexDirection": "row",
@ -354,13 +372,12 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
Object { Object {
"alignItems": "center", "alignItems": "center",
"justifyContent": "center", "justifyContent": "center",
"overflow": "hidden",
}, },
Object { Object {
"backgroundColor": "#8BC34A", "backgroundColor": "#8BC34A",
"borderRadius": 4, "borderRadius": 4,
"height": 56, "height": 46,
"width": 56, "width": 46,
}, },
undefined, undefined,
] ]
@ -376,7 +393,7 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
"color": "#ffffff", "color": "#ffffff",
}, },
Object { Object {
"fontSize": 28, "fontSize": 23,
}, },
] ]
} }
@ -384,6 +401,27 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
RC RC
</Text> </Text>
<View
style={
Array [
Object {
"borderRadius": 16,
"height": 16,
"width": 16,
},
Object {
"borderColor": "#fff",
"borderWidth": 3,
"bottom": -3,
"position": "absolute",
"right": -3,
},
Object {
"backgroundColor": "#cbced1",
},
]
}
/>
</View> </View>
<View <View
style={ style={
@ -412,13 +450,17 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
ellipsizeMode="tail" ellipsizeMode="tail"
numberOfLines={1} numberOfLines={1}
style={ style={
Array [
Object { Object {
"color": "#444", "color": "#444",
"flex": 1, "flex": 1,
"fontSize": 18, "fontSize": 18,
"fontWeight": "bold",
"marginRight": 8, "marginRight": 8,
} },
Object {
"fontWeight": "bold",
},
]
} }
> >
rocket.cat rocket.cat
@ -443,10 +485,10 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
<View <View
style={ style={
Object { Object {
"alignItems": "center", "alignItems": "flex-end",
"flex": 1, "flex": 1,
"flexDirection": "row", "flexDirection": "row",
"justifyContent": "center", "justifyContent": "flex-end",
"width": "100%", "width": "100%",
} }
} }
@ -485,7 +527,7 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
style={ style={
Array [ Array [
Object { Object {
"alignItems": "flex-start", "alignItems": "center",
"borderBottomColor": "#ddd", "borderBottomColor": "#ddd",
"borderBottomWidth": 0.5, "borderBottomWidth": 0.5,
"flexDirection": "row", "flexDirection": "row",
@ -502,13 +544,12 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
Object { Object {
"alignItems": "center", "alignItems": "center",
"justifyContent": "center", "justifyContent": "center",
"overflow": "hidden",
}, },
Object { Object {
"backgroundColor": "#8BC34A", "backgroundColor": "#8BC34A",
"borderRadius": 4, "borderRadius": 4,
"height": 56, "height": 46,
"width": 56, "width": 46,
}, },
undefined, undefined,
] ]
@ -524,7 +565,7 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
"color": "#ffffff", "color": "#ffffff",
}, },
Object { Object {
"fontSize": 28, "fontSize": 23,
}, },
] ]
} }
@ -532,6 +573,27 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
RC RC
</Text> </Text>
<View
style={
Array [
Object {
"borderRadius": 16,
"height": 16,
"width": 16,
},
Object {
"borderColor": "#fff",
"borderWidth": 3,
"bottom": -3,
"position": "absolute",
"right": -3,
},
Object {
"backgroundColor": "#cbced1",
},
]
}
/>
</View> </View>
<View <View
style={ style={
@ -560,13 +622,15 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
ellipsizeMode="tail" ellipsizeMode="tail"
numberOfLines={1} numberOfLines={1}
style={ style={
Array [
Object { Object {
"color": "#444", "color": "#444",
"flex": 1, "flex": 1,
"fontSize": 18, "fontSize": 18,
"fontWeight": "bold",
"marginRight": 8, "marginRight": 8,
} },
undefined,
]
} }
> >
rocket.cat rocket.cat
@ -591,10 +655,10 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
<View <View
style={ style={
Object { Object {
"alignItems": "center", "alignItems": "flex-end",
"flex": 1, "flex": 1,
"flexDirection": "row", "flexDirection": "row",
"justifyContent": "center", "justifyContent": "flex-end",
"width": "100%", "width": "100%",
} }
} }
@ -656,7 +720,7 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
style={ style={
Array [ Array [
Object { Object {
"alignItems": "flex-start", "alignItems": "center",
"borderBottomColor": "#ddd", "borderBottomColor": "#ddd",
"borderBottomWidth": 0.5, "borderBottomWidth": 0.5,
"flexDirection": "row", "flexDirection": "row",
@ -673,13 +737,12 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
Object { Object {
"alignItems": "center", "alignItems": "center",
"justifyContent": "center", "justifyContent": "center",
"overflow": "hidden",
}, },
Object { Object {
"backgroundColor": "#795548", "backgroundColor": "#795548",
"borderRadius": 4, "borderRadius": 4,
"height": 56, "height": 46,
"width": 56, "width": 46,
}, },
undefined, undefined,
] ]
@ -695,7 +758,7 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
"color": "#ffffff", "color": "#ffffff",
}, },
Object { Object {
"fontSize": 28, "fontSize": 23,
}, },
] ]
} }
@ -703,6 +766,27 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
LC LC
</Text> </Text>
<View
style={
Array [
Object {
"borderRadius": 16,
"height": 16,
"width": 16,
},
Object {
"borderColor": "#fff",
"borderWidth": 3,
"bottom": -3,
"position": "absolute",
"right": -3,
},
Object {
"backgroundColor": "#cbced1",
},
]
}
/>
</View> </View>
<View <View
style={ style={
@ -731,13 +815,17 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
ellipsizeMode="tail" ellipsizeMode="tail"
numberOfLines={1} numberOfLines={1}
style={ style={
Array [
Object { Object {
"color": "#444", "color": "#444",
"flex": 1, "flex": 1,
"fontSize": 18, "fontSize": 18,
"fontWeight": "bold",
"marginRight": 8, "marginRight": 8,
} },
Object {
"fontWeight": "bold",
},
]
} }
> >
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 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
@ -762,10 +850,10 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
<View <View
style={ style={
Object { Object {
"alignItems": "center", "alignItems": "flex-end",
"flex": 1, "flex": 1,
"flexDirection": "row", "flexDirection": "row",
"justifyContent": "center", "justifyContent": "flex-end",
"width": "100%", "width": "100%",
} }
} }
@ -827,7 +915,7 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
style={ style={
Array [ Array [
Object { Object {
"alignItems": "flex-start", "alignItems": "center",
"borderBottomColor": "#ddd", "borderBottomColor": "#ddd",
"borderBottomWidth": 0.5, "borderBottomWidth": 0.5,
"flexDirection": "row", "flexDirection": "row",
@ -844,13 +932,12 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
Object { Object {
"alignItems": "center", "alignItems": "center",
"justifyContent": "center", "justifyContent": "center",
"overflow": "hidden",
}, },
Object { Object {
"backgroundColor": "#795548", "backgroundColor": "#795548",
"borderRadius": 4, "borderRadius": 4,
"height": 56, "height": 46,
"width": 56, "width": 46,
}, },
undefined, undefined,
] ]
@ -866,7 +953,7 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
"color": "#ffffff", "color": "#ffffff",
}, },
Object { Object {
"fontSize": 28, "fontSize": 23,
}, },
] ]
} }
@ -874,6 +961,27 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
LC LC
</Text> </Text>
<View
style={
Array [
Object {
"borderRadius": 16,
"height": 16,
"width": 16,
},
Object {
"borderColor": "#fff",
"borderWidth": 3,
"bottom": -3,
"position": "absolute",
"right": -3,
},
Object {
"backgroundColor": "#cbced1",
},
]
}
/>
</View> </View>
<View <View
style={ style={
@ -902,13 +1010,15 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
ellipsizeMode="tail" ellipsizeMode="tail"
numberOfLines={1} numberOfLines={1}
style={ style={
Array [
Object { Object {
"color": "#444", "color": "#444",
"flex": 1, "flex": 1,
"fontSize": 18, "fontSize": 18,
"fontWeight": "bold",
"marginRight": 8, "marginRight": 8,
} },
undefined,
]
} }
> >
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 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
@ -933,10 +1043,10 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
<View <View
style={ style={
Object { Object {
"alignItems": "center", "alignItems": "flex-end",
"flex": 1, "flex": 1,
"flexDirection": "row", "flexDirection": "row",
"justifyContent": "center", "justifyContent": "flex-end",
"width": "100%", "width": "100%",
} }
} }
@ -998,7 +1108,7 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
style={ style={
Array [ Array [
Object { Object {
"alignItems": "flex-start", "alignItems": "center",
"borderBottomColor": "#ddd", "borderBottomColor": "#ddd",
"borderBottomWidth": 0.5, "borderBottomWidth": 0.5,
"flexDirection": "row", "flexDirection": "row",
@ -1015,13 +1125,12 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
Object { Object {
"alignItems": "center", "alignItems": "center",
"justifyContent": "center", "justifyContent": "center",
"overflow": "hidden",
}, },
Object { Object {
"backgroundColor": "#795548", "backgroundColor": "#795548",
"borderRadius": 4, "borderRadius": 4,
"height": 56, "height": 46,
"width": 56, "width": 46,
}, },
undefined, undefined,
] ]
@ -1037,7 +1146,7 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
"color": "#ffffff", "color": "#ffffff",
}, },
Object { Object {
"fontSize": 28, "fontSize": 23,
}, },
] ]
} }
@ -1045,6 +1154,27 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
LC LC
</Text> </Text>
<View
style={
Array [
Object {
"borderRadius": 16,
"height": 16,
"width": 16,
},
Object {
"borderColor": "#fff",
"borderWidth": 3,
"bottom": -3,
"position": "absolute",
"right": -3,
},
Object {
"backgroundColor": "#cbced1",
},
]
}
/>
</View> </View>
<View <View
style={ style={
@ -1073,13 +1203,15 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
ellipsizeMode="tail" ellipsizeMode="tail"
numberOfLines={1} numberOfLines={1}
style={ style={
Array [
Object { Object {
"color": "#444", "color": "#444",
"flex": 1, "flex": 1,
"fontSize": 18, "fontSize": 18,
"fontWeight": "bold",
"marginRight": 8, "marginRight": 8,
} },
undefined,
]
} }
> >
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 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
@ -1104,10 +1236,10 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
<View <View
style={ style={
Object { Object {
"alignItems": "center", "alignItems": "flex-end",
"flex": 1, "flex": 1,
"flexDirection": "row", "flexDirection": "row",
"justifyContent": "center", "justifyContent": "flex-end",
"width": "100%", "width": "100%",
} }
} }
@ -1169,7 +1301,7 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
style={ style={
Array [ Array [
Object { Object {
"alignItems": "flex-start", "alignItems": "center",
"borderBottomColor": "#ddd", "borderBottomColor": "#ddd",
"borderBottomWidth": 0.5, "borderBottomWidth": 0.5,
"flexDirection": "row", "flexDirection": "row",
@ -1186,13 +1318,12 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
Object { Object {
"alignItems": "center", "alignItems": "center",
"justifyContent": "center", "justifyContent": "center",
"overflow": "hidden",
}, },
Object { Object {
"backgroundColor": "#795548", "backgroundColor": "#795548",
"borderRadius": 4, "borderRadius": 4,
"height": 56, "height": 46,
"width": 56, "width": 46,
}, },
undefined, undefined,
] ]
@ -1208,7 +1339,7 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
"color": "#ffffff", "color": "#ffffff",
}, },
Object { Object {
"fontSize": 28, "fontSize": 23,
}, },
] ]
} }
@ -1216,6 +1347,27 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
LC LC
</Text> </Text>
<View
style={
Array [
Object {
"borderRadius": 16,
"height": 16,
"width": 16,
},
Object {
"borderColor": "#fff",
"borderWidth": 3,
"bottom": -3,
"position": "absolute",
"right": -3,
},
Object {
"backgroundColor": "#cbced1",
},
]
}
/>
</View> </View>
<View <View
style={ style={
@ -1244,13 +1396,15 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
ellipsizeMode="tail" ellipsizeMode="tail"
numberOfLines={1} numberOfLines={1}
style={ style={
Array [
Object { Object {
"color": "#444", "color": "#444",
"flex": 1, "flex": 1,
"fontSize": 18, "fontSize": 18,
"fontWeight": "bold",
"marginRight": 8, "marginRight": 8,
} },
undefined,
]
} }
> >
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 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
@ -1275,10 +1429,10 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
<View <View
style={ style={
Object { Object {
"alignItems": "center", "alignItems": "flex-end",
"flex": 1, "flex": 1,
"flexDirection": "row", "flexDirection": "row",
"justifyContent": "center", "justifyContent": "flex-end",
"width": "100%", "width": "100%",
} }
} }
@ -1340,7 +1494,7 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
style={ style={
Array [ Array [
Object { Object {
"alignItems": "flex-start", "alignItems": "center",
"borderBottomColor": "#ddd", "borderBottomColor": "#ddd",
"borderBottomWidth": 0.5, "borderBottomWidth": 0.5,
"flexDirection": "row", "flexDirection": "row",
@ -1357,13 +1511,12 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
Object { Object {
"alignItems": "center", "alignItems": "center",
"justifyContent": "center", "justifyContent": "center",
"overflow": "hidden",
}, },
Object { Object {
"backgroundColor": "#795548", "backgroundColor": "#795548",
"borderRadius": 4, "borderRadius": 4,
"height": 56, "height": 46,
"width": 56, "width": 46,
}, },
undefined, undefined,
] ]
@ -1379,7 +1532,7 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
"color": "#ffffff", "color": "#ffffff",
}, },
Object { Object {
"fontSize": 28, "fontSize": 23,
}, },
] ]
} }
@ -1387,6 +1540,27 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
LC LC
</Text> </Text>
<View
style={
Array [
Object {
"borderRadius": 16,
"height": 16,
"width": 16,
},
Object {
"borderColor": "#fff",
"borderWidth": 3,
"bottom": -3,
"position": "absolute",
"right": -3,
},
Object {
"backgroundColor": "#cbced1",
},
]
}
/>
</View> </View>
<View <View
style={ style={
@ -1415,13 +1589,15 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
ellipsizeMode="tail" ellipsizeMode="tail"
numberOfLines={1} numberOfLines={1}
style={ style={
Array [
Object { Object {
"color": "#444", "color": "#444",
"flex": 1, "flex": 1,
"fontSize": 18, "fontSize": 18,
"fontWeight": "bold",
"marginRight": 8, "marginRight": 8,
} },
undefined,
]
} }
> >
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 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
@ -1446,10 +1622,10 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
<View <View
style={ style={
Object { Object {
"alignItems": "center", "alignItems": "flex-end",
"flex": 1, "flex": 1,
"flexDirection": "row", "flexDirection": "row",
"justifyContent": "center", "justifyContent": "flex-end",
"width": "100%", "width": "100%",
} }
} }
@ -1511,7 +1687,7 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
style={ style={
Array [ Array [
Object { Object {
"alignItems": "flex-start", "alignItems": "center",
"borderBottomColor": "#ddd", "borderBottomColor": "#ddd",
"borderBottomWidth": 0.5, "borderBottomWidth": 0.5,
"flexDirection": "row", "flexDirection": "row",
@ -1528,13 +1704,12 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
Object { Object {
"alignItems": "center", "alignItems": "center",
"justifyContent": "center", "justifyContent": "center",
"overflow": "hidden",
}, },
Object { Object {
"backgroundColor": "#E91E63", "backgroundColor": "#E91E63",
"borderRadius": 4, "borderRadius": 4,
"height": 56, "height": 46,
"width": 56, "width": 46,
}, },
undefined, undefined,
] ]
@ -1550,7 +1725,7 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
"color": "#ffffff", "color": "#ffffff",
}, },
Object { Object {
"fontSize": 28, "fontSize": 23,
}, },
] ]
} }
@ -1558,6 +1733,27 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
W W
</Text> </Text>
<View
style={
Array [
Object {
"borderRadius": 16,
"height": 16,
"width": 16,
},
Object {
"borderColor": "#fff",
"borderWidth": 3,
"bottom": -3,
"position": "absolute",
"right": -3,
},
Object {
"backgroundColor": "#cbced1",
},
]
}
/>
</View> </View>
<View <View
style={ style={
@ -1586,13 +1782,15 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
ellipsizeMode="tail" ellipsizeMode="tail"
numberOfLines={1} numberOfLines={1}
style={ style={
Array [
Object { Object {
"color": "#444", "color": "#444",
"flex": 1, "flex": 1,
"fontSize": 18, "fontSize": 18,
"fontWeight": "bold",
"marginRight": 8, "marginRight": 8,
} },
undefined,
]
} }
> >
W W
@ -1617,10 +1815,10 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
<View <View
style={ style={
Object { Object {
"alignItems": "center", "alignItems": "flex-end",
"flex": 1, "flex": 1,
"flexDirection": "row", "flexDirection": "row",
"justifyContent": "center", "justifyContent": "flex-end",
"width": "100%", "width": "100%",
} }
} }
@ -1659,7 +1857,7 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
style={ style={
Array [ Array [
Object { Object {
"alignItems": "flex-start", "alignItems": "center",
"borderBottomColor": "#ddd", "borderBottomColor": "#ddd",
"borderBottomWidth": 0.5, "borderBottomWidth": 0.5,
"flexDirection": "row", "flexDirection": "row",
@ -1676,13 +1874,12 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
Object { Object {
"alignItems": "center", "alignItems": "center",
"justifyContent": "center", "justifyContent": "center",
"overflow": "hidden",
}, },
Object { Object {
"backgroundColor": "#9C27B0", "backgroundColor": "#9C27B0",
"borderRadius": 4, "borderRadius": 4,
"height": 56, "height": 46,
"width": 56, "width": 46,
}, },
undefined, undefined,
] ]
@ -1698,7 +1895,7 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
"color": "#ffffff", "color": "#ffffff",
}, },
Object { Object {
"fontSize": 28, "fontSize": 23,
}, },
] ]
} }
@ -1706,6 +1903,27 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
WW WW
</Text> </Text>
<View
style={
Array [
Object {
"borderRadius": 16,
"height": 16,
"width": 16,
},
Object {
"borderColor": "#fff",
"borderWidth": 3,
"bottom": -3,
"position": "absolute",
"right": -3,
},
Object {
"backgroundColor": "#cbced1",
},
]
}
/>
</View> </View>
<View <View
style={ style={
@ -1734,13 +1952,15 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
ellipsizeMode="tail" ellipsizeMode="tail"
numberOfLines={1} numberOfLines={1}
style={ style={
Array [
Object { Object {
"color": "#444", "color": "#444",
"flex": 1, "flex": 1,
"fontSize": 18, "fontSize": 18,
"fontWeight": "bold",
"marginRight": 8, "marginRight": 8,
} },
undefined,
]
} }
> >
WW WW
@ -1765,10 +1985,10 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
<View <View
style={ style={
Object { Object {
"alignItems": "center", "alignItems": "flex-end",
"flex": 1, "flex": 1,
"flexDirection": "row", "flexDirection": "row",
"justifyContent": "center", "justifyContent": "flex-end",
"width": "100%", "width": "100%",
} }
} }
@ -1807,7 +2027,7 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
style={ style={
Array [ Array [
Object { Object {
"alignItems": "flex-start", "alignItems": "center",
"borderBottomColor": "#ddd", "borderBottomColor": "#ddd",
"borderBottomWidth": 0.5, "borderBottomWidth": 0.5,
"flexDirection": "row", "flexDirection": "row",
@ -1824,13 +2044,12 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
Object { Object {
"alignItems": "center", "alignItems": "center",
"justifyContent": "center", "justifyContent": "center",
"overflow": "hidden",
}, },
Object { Object {
"backgroundColor": undefined, "backgroundColor": undefined,
"borderRadius": 4, "borderRadius": 4,
"height": 56, "height": 46,
"width": 56, "width": 46,
}, },
undefined, undefined,
] ]
@ -1846,7 +2065,7 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
"color": "#ffffff", "color": "#ffffff",
}, },
Object { Object {
"fontSize": 28, "fontSize": 23,
}, },
] ]
} }
@ -1854,6 +2073,27 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
</Text> </Text>
<View
style={
Array [
Object {
"borderRadius": 16,
"height": 16,
"width": 16,
},
Object {
"borderColor": "#fff",
"borderWidth": 3,
"bottom": -3,
"position": "absolute",
"right": -3,
},
Object {
"backgroundColor": "#cbced1",
},
]
}
/>
</View> </View>
<View <View
style={ style={
@ -1882,13 +2122,15 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
ellipsizeMode="tail" ellipsizeMode="tail"
numberOfLines={1} numberOfLines={1}
style={ style={
Array [
Object { Object {
"color": "#444", "color": "#444",
"flex": 1, "flex": 1,
"fontSize": 18, "fontSize": 18,
"fontWeight": "bold",
"marginRight": 8, "marginRight": 8,
} },
undefined,
]
} }
> >
@ -1913,10 +2155,10 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
<View <View
style={ style={
Object { Object {
"alignItems": "center", "alignItems": "flex-end",
"flex": 1, "flex": 1,
"flexDirection": "row", "flexDirection": "row",
"justifyContent": "center", "justifyContent": "flex-end",
"width": "100%", "width": "100%",
} }
} }

View File

@ -30,7 +30,7 @@ export default class Status extends React.Component {
get status() { get status() {
const userId = this.props.id; const userId = this.props.id;
return this.props.activeUsers[userId] || 'offline'; return this.props.activeUsers && this.props.activeUsers[userId] || 'offline';
} }
render() { render() {

View File

@ -143,7 +143,7 @@ const renderNumber = (unread, userMentions) => {
}; };
@connect(state => ({ @connect(state => ({
user: state.login.user, user: state.login && state.login.user,
StoreLastMessage: state.settings.Store_Last_Message, StoreLastMessage: state.settings.Store_Last_Message,
customEmojis: state.customEmojis customEmojis: state.customEmojis
})) }))