eftalyurtseven / react-native-wheel-of-fortune

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

Çarkı 2.kez dödüremiyorum.Ve çark üzerinde sayılar gözükmüyor.Kod aşağıda #14

Closed Ekremalpozmen closed 3 years ago

Ekremalpozmen commented 4 years ago

import React, { Component } from "react"; import { View, Text, StyleSheet, StatusBar, Button } from "react-native";

import WheelOfFortune from 'react-native-wheel-of-fortune';

const rewards = [1,2,3,4,5,6,7,8,9,10]

class App extends Component {

constructor(props) { super(props);

this.state = {
  winnerValue: null,
  winnerIndex: null
}
this.child = null

}

_renderPlayButton = () => { return (

TAP TO PLAY
);

}

render() { return (

(this.child = ref)} rewards={ rewards } knobSize={20} borderWidth={3} borderColor={"#FFF"} winner={3} innerRadius={50} backgroundColor={"#c0392b"} getWinner={(value, index) => this.setState({ winnerValue: value, winnerIndex: index })} />
gundogduyakici commented 3 years ago

Sayılar bende de gözükmüyor fakat 2. kez döndürmek için this.child içerisini tekrar null set etmeyi deneyin

eftalyurtseven commented 3 years ago

please upgrade to new version