diff --git a/docs/guide2.md b/docs/guide2.md index 4795cb0..9af06e0 100644 --- a/docs/guide2.md +++ b/docs/guide2.md @@ -9,7 +9,7 @@ import React, { Platform, } from 'react-native'; -import _updateConfig from '../update.json'; +import _updateConfig from './update.json'; const {appKey} = _updateConfig[Platform.OS]; ``` @@ -122,7 +122,7 @@ class MyProject extends Component { }).catch(err => { Alert.alert('提示', '更新失败.'); }); - } + }; render() { return (