Closed masineedi closed 4 years ago
Can you share your code please?
you can use getWinner callback property like this
getWinner={(value, index) => console.log("Winner Value: " + value + " , Winner Index: " + index)}
More details see /Example folder
inside the wheel no text
this is my JSON how can connect this "luckycolor": [ { "id": 1, "colorname": "Colour: Cru00e8me.", "colorcode": "#ffffff" }, { "id": 2, "colorname": "Colour: Bergandi Red.", "colorcode": "#ffffff" }, { "id": 3, "colorname": "Colour: Light grey.", "colorcode": "#ffffff" }, ]
You can not connect this format. You should create an array for rewards. Please detailed review Readme.md and /Example folder.
Is it possible to Display text inside the wheel parts
Iam unable to see the inside wheel pieces
This issue was not solved
rewards prop expects a list of strings. try let rewards = ["1", "2"]
to see what I mean
Iam adding text in reawards it is taking latter spacing
Now it is working fine
We can add text and it is displaying on each slice of the wheel properly, but text aligned vertically not horizontally. How do we align text horizontally?
Thanks.
The solution is which I find; Change iterated value from in _textRender function;
before: length: value.length after : length: value.toString().length
HI I have installed but unable see the reward text