* MM-9494 & MM-13888 Tapping with the keyboard opened executes the action & iOS iteractive keyboard * Fix tests * feedback review * add new line at the end of file * feedback review and added todo list * Track interactive dismiss keyboard and set scrollview bounds natively * Fix snapshots * Fastlane default to current branch when no BRANCH_TO_BUILD is set * Set NODE_OPTIONS in ios build script * Rebind scrollview when channel gets first set of posts * Keep scrolling momentum on keyboard close * Update react-native-keyboard-tracking-view * Fix ScrollView offset with keyboard-tracking * Fix offset while dragging the keyboard * Allow action on channel drawer on tablets * Fix typo Co-Authored-By: Saturnino Abril <saturnino.abril@gmail.com> * Fix indentation
224 lines
4.9 KiB
Text
224 lines
4.9 KiB
Text
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`thread should match snapshot, has root post 1`] = `
|
|
<React.Fragment>
|
|
<Connect(SafeAreaIos)
|
|
excludeHeader={true}
|
|
keyboardOffset={20}
|
|
>
|
|
<Connect(StatusBar) />
|
|
<React.Fragment>
|
|
<Connect(PostList)
|
|
currentUserId="member_user_id"
|
|
indicateNewMessages={false}
|
|
lastPostIndex={-1}
|
|
location="thread"
|
|
navigator={
|
|
Object {
|
|
"dismissModal": [MockFunction],
|
|
"pop": [MockFunction],
|
|
"resetTo": [MockFunction],
|
|
"setTitle": [MockFunction] {
|
|
"calls": Array [
|
|
Array [
|
|
Object {
|
|
"title": undefined,
|
|
},
|
|
],
|
|
],
|
|
"results": Array [
|
|
Object {
|
|
"type": "return",
|
|
"value": undefined,
|
|
},
|
|
],
|
|
},
|
|
}
|
|
}
|
|
onPostPress={[Function]}
|
|
postIds={
|
|
Array [
|
|
"root_id",
|
|
"post_id_1",
|
|
"post_id_2",
|
|
]
|
|
}
|
|
renderFooter={
|
|
<Loading
|
|
color="grey"
|
|
size="large"
|
|
style={Object {}}
|
|
/>
|
|
}
|
|
scrollViewNativeID="threadPostList"
|
|
/>
|
|
<Connect(FileUploadPreview)
|
|
channelId="channel_id"
|
|
rootId="root_id"
|
|
/>
|
|
<ForwardRef(forwardConnectRef)
|
|
cursorPositionEvent="onThreadTextBoxCursorChange"
|
|
maxHeight={200}
|
|
onChangeText={[Function]}
|
|
rootId="root_id"
|
|
valueEvent="onThreadTextBoxValueChange"
|
|
/>
|
|
</React.Fragment>
|
|
</Connect(SafeAreaIos)>
|
|
<KeyboardTrackingView
|
|
scrollViewNativeID="threadPostList"
|
|
>
|
|
<ForwardRef(forwardConnectRef)
|
|
channelId="channel_id"
|
|
channelIsArchived={false}
|
|
cursorPositionEvent="onThreadTextBoxCursorChange"
|
|
navigator={
|
|
Object {
|
|
"dismissModal": [MockFunction],
|
|
"pop": [MockFunction],
|
|
"resetTo": [MockFunction],
|
|
"setTitle": [MockFunction] {
|
|
"calls": Array [
|
|
Array [
|
|
Object {
|
|
"title": undefined,
|
|
},
|
|
],
|
|
],
|
|
"results": Array [
|
|
Object {
|
|
"type": "return",
|
|
"value": undefined,
|
|
},
|
|
],
|
|
},
|
|
}
|
|
}
|
|
onCloseChannel={[Function]}
|
|
rootId="root_id"
|
|
valueEvent="onThreadTextBoxValueChange"
|
|
/>
|
|
</KeyboardTrackingView>
|
|
</React.Fragment>
|
|
`;
|
|
|
|
exports[`thread should match snapshot, no root post, loading 1`] = `
|
|
<React.Fragment>
|
|
<Connect(SafeAreaIos)
|
|
excludeHeader={true}
|
|
keyboardOffset={20}
|
|
>
|
|
<Connect(StatusBar) />
|
|
<Loading
|
|
color="grey"
|
|
size="large"
|
|
style={Object {}}
|
|
/>
|
|
</Connect(SafeAreaIos)>
|
|
</React.Fragment>
|
|
`;
|
|
|
|
exports[`thread should match snapshot, render footer 1`] = `
|
|
<Connect(PostList)
|
|
currentUserId="member_user_id"
|
|
indicateNewMessages={false}
|
|
lastPostIndex={-1}
|
|
location="thread"
|
|
navigator={
|
|
Object {
|
|
"dismissModal": [MockFunction],
|
|
"pop": [MockFunction],
|
|
"resetTo": [MockFunction],
|
|
"setTitle": [MockFunction] {
|
|
"calls": Array [
|
|
Array [
|
|
Object {
|
|
"title": undefined,
|
|
},
|
|
],
|
|
],
|
|
"results": Array [
|
|
Object {
|
|
"type": "return",
|
|
"value": undefined,
|
|
},
|
|
],
|
|
},
|
|
}
|
|
}
|
|
onPostPress={[Function]}
|
|
postIds={
|
|
Array [
|
|
"root_id",
|
|
"post_id_1",
|
|
"post_id_2",
|
|
]
|
|
}
|
|
renderFooter={
|
|
<Loading
|
|
color="grey"
|
|
size="large"
|
|
style={Object {}}
|
|
/>
|
|
}
|
|
scrollViewNativeID="threadPostList"
|
|
/>
|
|
`;
|
|
|
|
exports[`thread should match snapshot, render footer 2`] = `
|
|
<Connect(PostList)
|
|
currentUserId="member_user_id"
|
|
indicateNewMessages={false}
|
|
lastPostIndex={-1}
|
|
lastViewedAt={0}
|
|
location="thread"
|
|
navigator={
|
|
Object {
|
|
"dismissModal": [MockFunction],
|
|
"pop": [MockFunction],
|
|
"resetTo": [MockFunction],
|
|
"setTitle": [MockFunction] {
|
|
"calls": Array [
|
|
Array [
|
|
Object {
|
|
"title": undefined,
|
|
},
|
|
],
|
|
],
|
|
"results": Array [
|
|
Object {
|
|
"type": "return",
|
|
"value": undefined,
|
|
},
|
|
],
|
|
},
|
|
}
|
|
}
|
|
onPostPress={[Function]}
|
|
postIds={
|
|
Array [
|
|
"root_id",
|
|
"post_id_1",
|
|
"post_id_2",
|
|
]
|
|
}
|
|
renderFooter={null}
|
|
scrollViewNativeID="threadPostList"
|
|
/>
|
|
`;
|
|
|
|
exports[`thread should match snapshot, render footer 3`] = `
|
|
<React.Fragment>
|
|
<Connect(SafeAreaIos)
|
|
excludeHeader={true}
|
|
keyboardOffset={20}
|
|
>
|
|
<Connect(StatusBar) />
|
|
<Loading
|
|
color="grey"
|
|
size="large"
|
|
style={Object {}}
|
|
/>
|
|
</Connect(SafeAreaIos)>
|
|
</React.Fragment>
|
|
`;
|