Skip to content

Commit 8154fc8

Browse files
committed
fix api snippets
1 parent 3ffde5f commit 8154fc8

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

lib/components/Keyboard/KeyboardInput/keyboardAccessoryView.api.json

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,5 +107,12 @@
107107
"default": "false"
108108
}
109109
],
110-
"snippet": ["KeyboardRegistry.registerKeyboard('keyboardName$1', () => KeyboardComponent$2)"]
111-
}
110+
"snippet": [
111+
"<KeyboardAccessoryView",
112+
" renderContent={this.renderContent()}",
113+
" kbInputRef={this.inputRef}",
114+
" kbComponent={$1}",
115+
" kbInitialProps={$2}",
116+
" onHeightChanged={this.onHeightChanged()}",
117+
"/>"
118+
]}

lib/components/Keyboard/KeyboardTracking/KeyboardTrackingView/keyboardTrackingView.api.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,11 @@
7676
],
7777
"snippet": [
7878
"<KeyboardTrackingView",
79-
"style={$1}",
80-
"trackInteractive",
81-
"useSafeArea",
79+
" style={$1}",
80+
" trackInteractive",
81+
" useSafeArea",
8282
">",
83-
"%2",
83+
" $2",
8484
"</KeyboardTrackingView>"
8585
]
8686
}

0 commit comments

Comments
 (0)