From 76bfa68ed4c80a2cef0f0f48df2d05cece9f77e5 Mon Sep 17 00:00:00 2001 From: quweifan <345827250@qq.com> Date: Thu, 18 Jul 2024 09:27:47 +0000 Subject: [PATCH] =?UTF-8?q?docs:=20=20=E4=BF=AE=E6=94=B9react-native-sqlit?= =?UTF-8?q?e-storage=E6=8C=87=E5=AF=BC=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: quweifan <345827250@qq.com> --- zh-cn/react-native-sqlite-storage.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/zh-cn/react-native-sqlite-storage.md b/zh-cn/react-native-sqlite-storage.md index 63f8b660..69c0af3f 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 -- Gitee