File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -6,13 +6,19 @@ function warn(message: string) {
6
6
7
7
function deprecationWarn ( { component, oldProp, newProp} : { component : string ; oldProp : string ; newProp ?: string } ) {
8
8
const message = newProp
9
- ? `uilib's ${ component } "${ oldProp } " prop will be deprecated soon, please use the "${ newProp } " prop instead`
10
- : `uilib's ${ component } "${ oldProp } " prop will be deprecated soon, please stop using it`
11
- ;
9
+ ? `RNUILib's ${ component } "${ oldProp } " prop will be deprecated soon, please use the "${ newProp } " prop instead`
10
+ : `RNUILib's ${ component } "${ oldProp } " prop will be deprecated soon, please stop using it` ;
11
+ warn ( message ) ;
12
+ }
13
+
14
+ function componentDeprecationWarn ( { oldComponent, newComponent} : { oldComponent : string ; newComponent : string } ) {
15
+ const message = `RNUILib's ${ oldComponent } component will be deprecated soon, please use the "${ newComponent } " component instead` ;
16
+
12
17
warn ( message ) ;
13
18
}
14
19
15
20
export default {
16
21
warn,
17
- deprecationWarn
22
+ deprecationWarn,
23
+ componentDeprecationWarn
18
24
} ;
You can’t perform that action at this time.
0 commit comments