-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #27190 from s-alves10/fix/issue-23908
fix: issue 23908
- Loading branch information
Showing
12 changed files
with
110 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 0 additions & 5 deletions
5
src/libs/openReportActionComposeViewWhenClosingMessageEdit/index.js
This file was deleted.
Oops, something went wrong.
9 changes: 0 additions & 9 deletions
9
src/libs/openReportActionComposeViewWhenClosingMessageEdit/index.native.js
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import * as Composer from '../actions/Composer'; | ||
|
||
export default (shouldShow) => { | ||
Composer.setShouldShowComposeInput(shouldShow); | ||
}; |
26 changes: 26 additions & 0 deletions
26
src/libs/setShouldShowComposeInputKeyboardAware/index.native.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import {Keyboard} from 'react-native'; | ||
import * as Composer from '../actions/Composer'; | ||
|
||
let keyboardDidHideListener = null; | ||
export default (shouldShow) => { | ||
if (keyboardDidHideListener) { | ||
keyboardDidHideListener.remove(); | ||
keyboardDidHideListener = null; | ||
} | ||
|
||
if (!shouldShow) { | ||
Composer.setShouldShowComposeInput(false); | ||
return; | ||
} | ||
|
||
// If keyboard is already hidden, we should show composer immediately because keyboardDidHide event won't be called | ||
if (!Keyboard.isVisible()) { | ||
Composer.setShouldShowComposeInput(true); | ||
return; | ||
} | ||
|
||
keyboardDidHideListener = Keyboard.addListener('keyboardDidHide', () => { | ||
Composer.setShouldShowComposeInput(true); | ||
keyboardDidHideListener.remove(); | ||
}); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters