Cats萌萌
解决方法可以参照这个代码试一试。const { quotes } = require('./quotes.json')classQuoteScreen extends Component {state = {QuoteIndex: 0}handleUpdateState = () => {this.setState(({ QuoteIndex }) => ({QuoteIndex: (QuoteIndex + 1) % (quotes.length - 1)}));}render() {return (<Image ...><View ...>...<ButtonNextQuoteonPress={this.handleUpdateState}/></View></Image>)}}