ResponseError.js 296 B

123456789101112
  1. import {Alert} from "react-native";
  2. const ResponseError = (response,) => {
  3. Alert.alert(
  4. '友情提醒',
  5. response.msg ? response.msg : '当前页面出错了!',
  6. [
  7. {text: '我知道了', style: 'cancel'},
  8. ],
  9. );
  10. }
  11. export default ResponseError;