-
Notifications
You must be signed in to change notification settings - Fork 224
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
undefined is not an object (evaluating 'RNBackgroundTimer.setTimeout' #35
Comments
Did you remember to run |
I wanted to share that the link command alone did not help me, in the long run I had to link manually. In your import com.ocetnik.timer.BackgroundTimerPackage;
@Override
protected List<ReactPackage> getPackages() {
return Arrays.<ReactPackage>asList(
new MainReactPackage(),
new VectorIconsPackage(),
//........and so on
new BackgroundTimerPackage()
);
} good luck! android build errors in this ecosystem are frustrating sometimes :) |
I used |
another thing to check is in your
I know I mentioned it before, but the link command simply did no good for me, and I had to add this stuff myself. Finally I'd (just to cover our bases) make sure you're using latest packages as well. Hope that helps. @JimSchofield are you getting the exact same stacktrace as this issue? Does it point to the setTimeout, or clear timeout? Just making sure I'm not overlooking something Best of luck :) |
@the-simian gradle entries were identical to what you supplied, and it was identical to the op. For some reason I re-imported it and tried using it and it worked... I wish I could tell you what I was doing wrong. Thanks for the help! |
glad to hear its working for you :) |
@dadsteph Did previous comments help you? Can I close this issue? |
I am working with expo integrated app, the above steps couldn't solve the issue for me. Is there anything else I can do to solve the issue? |
Works for me after adding the lines in |
@the-simian thanks for your comment it did work for me as well now. Wondering why this is not properly working or in the Readme. |
Right on @natterstefan ~! React Native... sometimes you gotta jiggle the cables you know? |
Not working on expo! |
@akshayseth If you use Expo you'll just need to "eject". Check the installation section in the readme. |
@akshayseth I'm using expo these days also, honestly, I often have problems when I stray from expo's ecosystem unless I eject (which I usually don't because there's a lot of downsides to that) |
One more thing to the discussion: if you are using remote debugging via Wifi with a real phone, you still need to connect via cable. Remote reloading delivers only the Javascript files, while you need the new app build, which can only be delivered through a cable. |
if you were just install this and testing with |
Not working for me even after linking the module manually. Please help : ( |
I'm also facing this problem although I already followed the README (manual linking included) :( |
I'm getting this error:
This is the source code:
Please help...
The text was updated successfully, but these errors were encountered: