Android 上的 ActivityIndicator 不旋转或动画
ActivityIndicator not spinning or animated on Android
在 iOS 上按预期工作,但在 Android 上它只是一个静态图像。不知道我怎么搞砸了这么简单的事情!
在Expo中创建了一个全新的项目如下:
export default class App extends React.Component {
render() {
return (
<View style={styles.container}>
<ActivityIndicator animating={true} />
<Text>Open up App.js to start working on your app!</Text>
</View>
);
}
}
这可能是您正在使用的设备。我正在三星 Galaxy S8 和 LGE G6 上测试我的 React 本机应用程序。在 Galaxy 上,ActivityIndicators 动画很好,但在 LGE Phone 它们是静态的,可能只是品牌之间的实现差异,图像本身也不同。
在 iOS 上按预期工作,但在 Android 上它只是一个静态图像。不知道我怎么搞砸了这么简单的事情!
在Expo中创建了一个全新的项目如下:
export default class App extends React.Component {
render() {
return (
<View style={styles.container}>
<ActivityIndicator animating={true} />
<Text>Open up App.js to start working on your app!</Text>
</View>
);
}
}
这可能是您正在使用的设备。我正在三星 Galaxy S8 和 LGE G6 上测试我的 React 本机应用程序。在 Galaxy 上,ActivityIndicators 动画很好,但在 LGE Phone 它们是静态的,可能只是品牌之间的实现差异,图像本身也不同。