这个组件很简单 主要有两个属性:开.关....呵呵哒,,, import React,{Component}from 'react'; import { AppRegistry, StyleSheet, Text, View, Switch, } from 'react-native'; var SwitchDemo = React.createClass({ getInitialState() { return { trueSwitchIsOn: true, falseSwitchIsOn:…