react-native-spinkit icon indicating copy to clipboard operation
react-native-spinkit copied to clipboard

Component doesnt animate on Android

Open melihmucuk opened this issue 9 years ago • 2 comments

React-Native v0.30 react-native-spinkit v1.2.0 and v1.3.0

With rnpm link, it shows red square. After that, I tried manual installation, then spinkit doesnt animate.

melihmucuk avatar Aug 25 '16 21:08 melihmucuk

Hi there @melihmucuk

Try adding the following code to the index.android.js right before AppRegistry...

code to add:

UIManager.setLayoutAnimationEnabledExperimental(true);

Example usage:

import { AppRegistry, UIManager } from 'react-native'; import App from './src/app';

UIManager.setLayoutAnimationEnabledExperimental(true); AppRegistry.registerComponent('tech_stack', () => App);

Hope this helps!

DeveloperAlly avatar Jan 05 '17 07:01 DeveloperAlly

in case of red square problem if this doesnt help try.... Followed manual setup guide: https://github.com/maxs15/react-native-spinkit/wiki/Manual-linking---Android

Found that the linking hadn't worked properly in Android java files and fixed it accordingly

This solved the issue!1 💃 YAY

Great react-native component. Thanks =D

DeveloperAlly avatar Jan 05 '17 15:01 DeveloperAlly