React.useEffect(_ => {
ReactNativeAsyncStorage.getItem("jwt")
|> Js.Promise.then_(jwt => {Js.log(jwt)});
None;
});
错误:
This expression has type unit but an expression was expected of type
Js.Promise.t('a) = Js.Promise.t('a)
我将https://github.com/reason-react-native/async-storage与https://github.com/react-native-community/async-storage一起使用