@@ -41,7 +41,8 @@ type inboxProps = {
4141 customizations ?: IterableInboxCustomizations ,
4242 tabBarHeight ?: number ,
4343 tabBarPadding ?: number ,
44- safeAreaMode ?: boolean
44+ safeAreaMode ?: boolean ,
45+ showNavTitle ?: boolean
4546}
4647
4748const IterableInbox = ( {
@@ -50,7 +51,8 @@ const IterableInbox = ({
5051 customizations = { } as IterableInboxCustomizations ,
5152 tabBarHeight = 80 ,
5253 tabBarPadding = 20 ,
53- safeAreaMode = true
54+ safeAreaMode = true ,
55+ showNavTitle = true
5456} : inboxProps ) => {
5557 const defaultInboxTitle = "Inbox"
5658 const inboxDataModel = new IterableInboxDataModel ( )
@@ -243,9 +245,11 @@ const IterableInbox = ({
243245 function showMessageList ( loading : boolean ) {
244246 return (
245247 < View style = { messageListContainer } >
246- < Text style = { headline } >
247- { customizations ?. navTitle ? customizations ?. navTitle : defaultInboxTitle }
248- </ Text >
248+ { showNavTitle ?
249+ < Text style = { headline } >
250+ { customizations ?. navTitle ? customizations ?. navTitle : defaultInboxTitle }
251+ </ Text >
252+ : null }
249253 { rowViewModels . length ?
250254 < IterableInboxMessageList
251255 dataModel = { inboxDataModel }
@@ -289,22 +293,22 @@ const IterableInbox = ({
289293 const inboxAnimatedView =
290294 < Animated . View
291295 style = { {
292- transform : [
293- {
294- translateX : animatedValue . interpolate ( {
295- inputRange : [ 0 , 1 ] ,
296- outputRange : [ 0 , - width ]
297- } )
298- }
299- ] ,
300- height : '100%' ,
301- flexDirection : 'row' ,
302- width : 2 * width ,
303- justifyContent : 'flex-start'
304- } }
305- >
306- { showMessageList ( loading ) }
307- { showMessageDisplay ( rowViewModels , selectedRowViewModelIdx ) }
296+ transform : [
297+ {
298+ translateX : animatedValue . interpolate ( {
299+ inputRange : [ 0 , 1 ] ,
300+ outputRange : [ 0 , - width ]
301+ } )
302+ }
303+ ] ,
304+ height : '100%' ,
305+ flexDirection : 'row' ,
306+ width : 2 * width ,
307+ justifyContent : 'flex-start'
308+ } }
309+ >
310+ { showMessageList ( loading ) }
311+ { showMessageDisplay ( rowViewModels , selectedRowViewModelIdx ) }
308312 </ Animated . View >
309313
310314 return (
0 commit comments