import React ,{ Component } from 'react';
import {
StyleSheet,
View,
Text,
Switch,
Image,
TouchableOpacity
} from 'react-native';
import styles from './styles';
class notice extends Component {
static navigationOptions = ({ navigation }) => ({
headerLeft: (
{
navigation.goBack();
}}
>
),
headerTitle:
通知
});
constructor(props) {
super(props);
this.state = {
isBlocking: false
};
this.onChange = this.onChange.bind(this);
}
onChange(value) {
const { isBlocking } = this.state;
this.setState({ value : !value });
}
render() {
const {isBlocking} =this.state;
return(
提醒通知
this.onChange(isSync)}
trackColor={{ false: '#E5E5E5', true: '#339FAF' }}
style={{ transform: [{ scaleX: 0.8 }, { scaleY: 0.8 }] }}
/>
文章推播
this.onChange(isSync)}
trackColor={{ false: '#E5E5E5', true: '#339FAF' }}
style={{ transform: [{ scaleX: 0.8 }, { scaleY: 0.8 }] }}
/>
)
}
}
export default notice;