Warning: isMounted(…) is deprecated in plain Javascript Classes. Instead, make sure to clean up s...

解决:在index.js中加入一下代码,忽略警告

import { YellowBox } from 'react-native';

YellowBox.ignoreWarnings(['Warning: isMounted(...) is deprecated', 'Module RCTImageLoader']);


你可能感兴趣的:(Warning: isMounted(…) is deprecated in plain Javascript Classes. Instead, make sure to clean up s...)