jlyman / react-native-rating-requestor

A React Native component to prompt users for a rating after positive interactions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

timingFunction is not working?

lohkaeo opened this issue · comments

Hello,

I try to call timingFunction, but it's not working. Please see code below.

import RatingRequestor from "react-native-rating-requestor";

const RatingTracker = new RatingRequestor(
Platform.select({
ios: 'xxxxxxxxx',
android: 'app.xxx',
}), {
shouldBoldLastButton: true,
timingFunction: function(currentCount) {
return currentCount > 1 && Math.log(currentCount) / Math.log(3) % 1 == 0;
}
});

When you say that it isn't working, can you give a little more detail? Is the popup just never firing? Does it do something weird?

Closing needing more info for now, but feel free to reopen if needed.