mirror of
https://github.com/timepill/timepill-app.git
synced 2025-04-30 09:59:31 +08:00
优化写日记页键盘弹出效果
This commit is contained in:
parent
0ef9303bbd
commit
177d5e54d6
1 changed files with 2 additions and 3 deletions
|
@ -114,10 +114,9 @@ export default class WritePage extends Component {
|
||||||
componentDidMount() {
|
componentDidMount() {
|
||||||
this.loadNotebook().then(notebookCount => {
|
this.loadNotebook().then(notebookCount => {
|
||||||
if(notebookCount > 0) {
|
if(notebookCount > 0) {
|
||||||
setTimeout(() => {
|
InteractionManager.runAfterInteractions(() => {
|
||||||
this.contentInput.focus();
|
this.contentInput.focus();
|
||||||
}, 500);
|
});
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
Alert.alert('提示', '没有可用日记本,无法写日记',[
|
Alert.alert('提示', '没有可用日记本,无法写日记',[
|
||||||
{text: '取消', onPress: () => {}},
|
{text: '取消', onPress: () => {}},
|
||||||
|
|
Loading…
Reference in a new issue