Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

React 0.29 weird red square #26

Open
jr-k opened this issue Jul 22, 2016 · 12 comments
Open

React 0.29 weird red square #26

jr-k opened this issue Jul 22, 2016 · 12 comments

Comments

@jr-k
Copy link

jr-k commented Jul 22, 2016

I followed the example and I got this : https://puu.sh/qaxut/98de9b9ccd.png

Do you have an idea of what is the cause ?

Thanks !

@SHRoberts91
Copy link

I get this too, but only when I try it with android. It works great on IOS

@jr-k
Copy link
Author

jr-k commented Jul 22, 2016

Tried on IOS still got that square.

Another guy got this one too on android (below on comments of this post) : http://www.reactnative.com/a-collection-of-animated-loading-indicators-for-react-native/

@jmitch0901
Copy link

+1

@wkh237
Copy link
Contributor

wkh237 commented Jul 24, 2016

Because react native change Android application template in 0.29, rnpm link is broken in 0.29.0~0.29.1, see this issue.

You can fix this by link the Android library manually, or just upgrade your project

$ react-native upgrade

remember to rnpm link after upgrade.

@SHRoberts91
Copy link

I took those steps, but still having the same problem on android. :/

@nschurmann
Copy link

Same here!, weird red square.

@nschurmann
Copy link

The solution for android:
in your MainActivity.java, cut the import for this plugin

import com.react.rnspinkit.RNSpinkitPackage;

and add it to your MainApplication.java, then in your getPackages() method, add a new package:

new RNSpinkitPackage()

should look like this:

@Override
    protected List<ReactPackage> getPackages() {
      return Arrays.<ReactPackage>asList(
          new MainReactPackage(),
          new FBSDKPackage(mCallbackManager),
          new RNSpinkitPackage()
      );
    }

@SHRoberts91
Copy link

SHRoberts91 commented Aug 3, 2016

That worked!! Thanks @nschurmann, you're a boss :)

@crod93
Copy link

crod93 commented Aug 6, 2016

hb for ios ?

@maxs15
Copy link
Owner

maxs15 commented Aug 22, 2016

The RNPM script has been updated for Android, should be easier now for RN 0.29+ thanks to @wkh237 !

@DeveloperAlly
Copy link

same issue. 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

@SSRen
Copy link

SSRen commented Mar 4, 2017

I get it too in a new project, but it is normal in Example for React native 0.42.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants