eftalyurtseven / react-native-wheel-of-fortune

React Native Wheel of Fortune Plugin
103 stars 89 forks source link

Unable to see reward text on wheel #4

Closed masineedi closed 4 years ago

masineedi commented 5 years ago

Screenshot 2019-10-20 at 12 04 04 AM HI I have installed but unable see the reward text

eftalyurtseven commented 5 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

masineedi commented 5 years ago

inside the wheel no text

masineedi commented 5 years ago

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" }, ]

eftalyurtseven commented 5 years ago

You can not connect this format. You should create an array for rewards. Please detailed review Readme.md and /Example folder.

masineedi commented 5 years ago

Is it possible to Display text inside the wheel parts

masineedi commented 5 years ago

Iam unable to see the inside wheel pieces

tmdeginal commented 4 years ago

This issue was not solved

rschneid0 commented 4 years ago

rewards prop expects a list of strings. try let rewards = ["1", "2"] to see what I mean

tmdeginal commented 4 years ago

Iam adding text in reawards it is taking latter spacing

tmdeginal commented 4 years ago

Now it is working fine

sreenu74 commented 4 years ago

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.

burakozturk16 commented 4 years ago

The solution is which I find; Change iterated value from in _textRender function;

before: length: value.length after : length: value.toString().length