gpt4 book ai didi

react-native - Flow Promise 此类型与 undefined undefined 不兼容

转载 作者:行者123 更新时间:2023-12-05 01:12:16 24 4
gpt4 key购买 nike

获取警告 enter image description here

在线:

enter image description here

使用 Flow.js v.0.48.0。代码示例:

...
import { Font, AppLoading } from 'expo';
...
export default class App extends Component {
async componentDidMount() {
await Font.loadAsync(fontsStore);
...
}
...
}

最佳答案

找到黑客解决方案:

...
componentDidMount() {
this.loadFonts();
}

async loadFonts () {
await Font.loadAsync(fontsStore);

this.setState({ fontLoaded: true });
}
...

关于react-native - Flow Promise 此类型与 undefined undefined 不兼容,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44611750/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com