Comments (12)
rewards prop expects a list of strings. try let rewards = ["1", "2"]
to see what I mean
from react-native-wheel-of-fortune.
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
from react-native-wheel-of-fortune.
inside the wheel no text
from react-native-wheel-of-fortune.
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"
},
]
from react-native-wheel-of-fortune.
You can not connect this format.
You should create an array for rewards. Please detailed review Readme.md and /Example folder.
from react-native-wheel-of-fortune.
Is it possible to Display text inside the wheel parts
from react-native-wheel-of-fortune.
Iam unable to see the inside wheel pieces
from react-native-wheel-of-fortune.
This issue was not solved
from react-native-wheel-of-fortune.
Iam adding text in reawards it is taking latter spacing
from react-native-wheel-of-fortune.
Now it is working fine
from react-native-wheel-of-fortune.
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.
from react-native-wheel-of-fortune.
The solution is which I find; Change iterated value from in _textRender function;
before: length: value.length
after : length: value.toString().length
from react-native-wheel-of-fortune.
Related Issues (20)
- Is there any plan to moved it with React Native hooks (onRef issue) HOT 7
- Control the rate of special rewards
- requireNativeComponent: "RNSVGTSpan" was not found in the UIManager this error is showing HOT 7
- Using hermes for this library is faulty HOT 1
- knob.png file does not exist. HOT 2
- Tried to register two views with same name RNSVGRect HOT 2
- Rotated Letters have space HOT 1
- Android - different behaviour when the React Native Debugger is not working HOT 6
- winner index 0 returns random winner
- getWinner is not a function
- Fix: knob.png not found HOT 1
- Outer and Inner Wheel
- "export 'default' (imported as 'WheelOfFortune') was not found in 'react-native-wheel-of-fortune' HOT 2
- After adding more than 6 rewards to the list wheel order is different. Any solutions ? HOT 1
- Text is not clear, Broken letters
- this.props.getWinner is not a function
- TypeError: undefined is not an object (evaluating '_this.props.options.rewards') HOT 1
- JSON value '( 0, 4278190080 )' of type NSMutableArray cannot be converted to NSDictionary HOT 3
- "RNSVGSvgView" was not found in the UIManager. HOT 3
- Unable to run demo (some kind of casting error?) HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-wheel-of-fortune.