Skip to content

Commit d66b8fc

Browse files
authored
Merge pull request #135 from esam091/navbar-documentation
Complete missing Config documentations
2 parents 9f09e36 + 625f420 commit d66b8fc

File tree

1 file changed

+30
-2
lines changed

1 file changed

+30
-2
lines changed

docs/api/navigator-config.md

+30-2
Original file line numberDiff line numberDiff line change
@@ -180,11 +180,35 @@ type Button = {
180180

181181
// ios-only
182182
style: 'plain' | 'default';
183-
systemItem: 'done' | 'cancel' | 'edit' | 'save' | 'add' | 'flexibleSpace' | 'compose' | 'reply' | 'action' | 'organize' | 'bookmarks' | 'search' | 'refresh' | 'stop' | 'camera' | 'trash' | 'play' | 'pause' | 'rewind' | 'fastForward' | 'undo' | 'redo' | 'pageCurl';
183+
systemItem: SystemItem;
184184

185185
// android-only
186186
};
187187

188+
type SystemItem = 'done'
189+
| 'cancel'
190+
| 'edit'
191+
| 'save'
192+
| 'add'
193+
| 'flexibleSpace'
194+
| 'compose'
195+
| 'reply'
196+
| 'action'
197+
| 'organize'
198+
| 'bookmarks'
199+
| 'search'
200+
| 'refresh'
201+
| 'stop'
202+
| 'camera'
203+
| 'trash'
204+
| 'play'
205+
| 'pause'
206+
| 'rewind'
207+
| 'fastForward'
208+
| 'undo'
209+
| 'redo'
210+
| 'pageCurl'
211+
188212
type NavigatorConfigProps = {
189213

190214
// shared
@@ -196,6 +220,7 @@ type NavigatorConfigProps = {
196220
rightTitle: string;
197221
rightImage: Image;
198222
rightButtons: Array<Button>;
223+
leftButtons: Array<Button>;
199224
screenColor: Color;
200225
hidden: boolean;
201226
backgroundColor: Color;
@@ -210,12 +235,13 @@ type NavigatorConfigProps = {
210235
titleFontSize: number;
211236
subtitleFontName: string;
212237
subtitleFontSize: number;
238+
leftTitle: string;
239+
leftImage: Image;
213240

214241
// android-only-but-should-share
215242
navIcon: Image;
216243
logo: Image;
217244
textAlign: 'left' | 'center' | 'right';
218-
leftButtons: Array<Button>;
219245

220246
// ios-only
221247
prompt: string;
@@ -226,6 +252,8 @@ type NavigatorConfigProps = {
226252
isToolbarHidden: boolean;
227253
backIndicatorTransitionMaskImage: Image;
228254
translucent: boolean;
255+
rightSystemItem: SystemItem;
256+
leftSystemItem: SystemItem;
229257

230258
// android-only
231259
statusBarColor: Color;

0 commit comments

Comments
 (0)