diff --git a/zh-cn/react-native-sqlite-storage.md b/zh-cn/react-native-sqlite-storage.md index 63f8b660976658346233b365c5ef6698666e8390..69c0af3f0a3069ec2c05fa10fc54020e39e4fe5f 100644 --- a/zh-cn/react-native-sqlite-storage.md +++ b/zh-cn/react-native-sqlite-storage.md @@ -47,8 +47,7 @@ yarn add @react-native-oh-tpl/react-native-sqlite-storage@file:# * @format */ import React, {Component} from 'react'; -import {AppRegistry, StyleSheet, Text, View, FlatList} from 'react-native'; -import {name as appName} from './app.json'; +import {StyleSheet, Text, View, FlatList} from 'react-native'; import SQLite from 'react-native-sqlite-storage'; SQLite.DEBUG(true); SQLite.enablePromise(false); @@ -304,8 +303,7 @@ var styles = StyleSheet.create({ flex: 1, }, }); -AppRegistry.registerComponent(appName, () => SQLiteDemo); - +export default SQLiteDemo; ``` ## 使用 Codegen