Closed Ekremalpozmen closed 3 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 (
);
render() { return (
} } export default App;
const styles = StyleSheet.create({ container: { flex: 1, alignItems: 'center', justifyContent: 'center', backgroundColor: 'aquamarine' }, winner: { width: '100%', position: 'absolute', padding: 10, backgroundColor: 'black', bottom: 50, justifyContent: 'center', alignItems: 'center' }, winnerText: { fontSize: 26, color: 'black' }, tapToStart: { fontSize: 50, color: '#fff', fontWeight: 'bold' } });
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
please upgrade to new version
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);
}
_renderPlayButton = () => { return (
}
render() { return (
} } export default App;
const styles = StyleSheet.create({ container: { flex: 1, alignItems: 'center', justifyContent: 'center', backgroundColor: 'aquamarine' }, winner: { width: '100%', position: 'absolute', padding: 10, backgroundColor: 'black', bottom: 50, justifyContent: 'center', alignItems: 'center' }, winnerText: { fontSize: 26, color: 'black' }, tapToStart: { fontSize: 50, color: '#fff', fontWeight: 'bold' } });