* Dismiss keyboard on edit post close * Don't use edit post request * Focus on error Co-authored-by: Miguel Alatzar <this.migbot@gmail.com>
93 lines
2 KiB
Text
93 lines
2 KiB
Text
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`EditPost should match snapshot 1`] = `
|
|
<View
|
|
style={
|
|
Object {
|
|
"flex": 1,
|
|
}
|
|
}
|
|
>
|
|
<Connect(StatusBar) />
|
|
<View
|
|
style={
|
|
Object {
|
|
"backgroundColor": "rgba(61,60,64,0.03)",
|
|
"flex": 1,
|
|
}
|
|
}
|
|
>
|
|
<View
|
|
style={
|
|
Array [
|
|
Object {
|
|
"backgroundColor": "#ffffff",
|
|
"borderBottomColor": "rgba(61,60,64,0.1)",
|
|
"borderBottomWidth": 1,
|
|
"borderTopColor": "rgba(61,60,64,0.1)",
|
|
"borderTopWidth": 1,
|
|
"marginTop": 2,
|
|
},
|
|
null,
|
|
Object {
|
|
"height": NaN,
|
|
},
|
|
]
|
|
}
|
|
>
|
|
<TextInputWithLocalizedPlaceholder
|
|
blurOnSubmit={false}
|
|
disableFullscreenUI={true}
|
|
keyboardAppearance="light"
|
|
keyboardType="default"
|
|
multiline={true}
|
|
numberOfLines={10}
|
|
onChangeText={[Function]}
|
|
onSelectionChange={[Function]}
|
|
placeholder={
|
|
Object {
|
|
"defaultMessage": "Edit the post...",
|
|
"id": "edit_post.editPost",
|
|
}
|
|
}
|
|
placeholderTextColor="rgba(61,60,64,0.4)"
|
|
style={
|
|
Array [
|
|
Object {
|
|
"color": "#3d3c40",
|
|
"fontSize": 14,
|
|
"padding": 15,
|
|
"textAlignVertical": "top",
|
|
},
|
|
Object {
|
|
"height": NaN,
|
|
},
|
|
]
|
|
}
|
|
underlineColorAndroid="transparent"
|
|
/>
|
|
</View>
|
|
</View>
|
|
<KeyboardTrackingView
|
|
style={
|
|
Array [
|
|
Object {
|
|
"flex": 1,
|
|
"justifyContent": "flex-end",
|
|
},
|
|
Object {
|
|
"flex": 0,
|
|
},
|
|
]
|
|
}
|
|
>
|
|
<Connect(Autocomplete)
|
|
cursorPosition={0}
|
|
maxHeight={200}
|
|
nestedScrollEnabled={true}
|
|
onChangeText={[Function]}
|
|
onVisible={[Function]}
|
|
/>
|
|
</KeyboardTrackingView>
|
|
</View>
|
|
`;
|