diff --git a/vmall/react-native-safe-area-context.md b/vmall/react-native-safe-area-context.md
index 86041f5054f4c9d15d1b956915f7d39a8eb1fbca..c141d0f9b79bc7f18c823dec1b5221e3cf405856 100644
--- a/vmall/react-native-safe-area-context.md
+++ b/vmall/react-native-safe-area-context.md
@@ -1,4 +1,4 @@
-> 模板版本:v0.0.1
+> 模板版本:v0.1.1
react-native-safe-area-context
@@ -18,18 +18,16 @@
-**正在 npm 发布中,当前请先从仓库[Release](https://github.com/react-native-oh-library/react-native-safe-area-context/releases)中获取库 tgz,通过使用本地依赖来安装本库。**
-
#### **yarn**
```bash
-yarn add xxx
+yarn add @react-native-oh-tpl/react-native-safe-area-context
```
#### **npm**
```bash
-npm install xxx
+npm install @react-native-oh-tpl/react-native-safe-area-context
```
@@ -79,7 +77,7 @@ export default App;
```json
"dependencies": {
"rnoh": "file:../rnoh",
- "rnoh-safe-area": "file:../../node_modules/react-native-safe-area-context/harmony/safe_area.har"
+ "rnoh-safe-area": "file:../../node_modules/@react-native-oh-tpl/react-native-safe-area-context/harmony/safe_area.har"
}
```
@@ -98,7 +96,7 @@ ohpm install
```json
"dependencies": {
"rnoh": "file:../rnoh",
- "rnoh-safe-area": "file:../../node_modules/react-native-safe-area-context/harmony/safe_area"
+ "rnoh-safe-area": "file:../../node_modules/@react-native-oh-tpl/react-native-safe-area-context/harmony/safe_area"
}
```
@@ -172,28 +170,28 @@ import {
} from 'rnoh'
import { SampleView, SAMPLE_VIEW_TYPE, PropsDisplayer } from "rnoh-sample-package"
import { createRNPackages } from '../RNPackagesFactory'
-+ import { SAFE_AREA_TYPE, RNCSafeAreaView, SAFE_AREA_PROVIDER_TYPE, SafeAreaProvider } from "rnoh-safe-area"
++ import { SAFE_AREA_VIEW_TYPE, SafeAreaView, SAFE_AREA_PROVIDER_TYPE, SafeAreaProvider } from "rnoh-safe-area"
@Builder
function CustomComponentBuilder(ctx: ComponentBuilderContext) {
- if (ctx.descriptor.type === SAMPLE_VIEW_TYPE) {
+ if (ctx.componentName === SAMPLE_VIEW_TYPE) {
SampleView({
ctx: ctx.rnohContext,
- tag: ctx.descriptor.tag,
+ tag: ctx.tag,
buildCustomComponent: CustomComponentBuilder
})
}
-+ else if (ctx.descriptor.type === SAFE_AREA_TYPE) {
-+ RNCSafeAreaView({
++ else if (ctx.componentName === SAFE_AREA_VIEW_TYPE) {
++ SafeAreaView({
+ ctx: ctx.rnohContext,
-+ tag: ctx.descriptor.tag,
++ tag: ctx.tag,
+ buildCustomComponent: CustomComponentBuilder
+ })
+ }
-+ else if (ctx.descriptor.type === SAFE_AREA_PROVIDER_TYPE) {
++ else if (ctx.componentName === SAFE_AREA_PROVIDER_TYPE) {
+ SafeAreaProvider({
+ ctx: ctx.rnohContext,
-+ tag: ctx.descriptor.tag,
++ tag: ctx.tag,
+ buildCustomComponent: CustomComponentBuilder
+ })
+ }