2016-06-27 7 views
0

私は画面下部にTabBarIOSというスクロール可能な項目のスクロール可能なListViewを持つ反応ネイティブアプリを持っています。私はあなたがそれを得るが、それが役立つ場合にスクリーンショットを添付することを確信しています。何らかの理由で、私はTabBarIOS.Itemをクリックしたときに下にクリック可能な項目をトリガし、私がなぜわからないの場合onPressイベントトリガーTabBarIOSの代わりにListView Item

screen shot of page

私のレンダリング機能をポストする。誰かが私に何が間違っているのかを教えてもらえれば、私が試してみたいことを示唆してもいいと思う。前もって感謝します。

render() { 

if (!this.state.loaded) { 
    return this.renderLoadingView(); 
} 

return (
    <View style={{ flex: 1 }}> 
    <StatusBar 
     hidden={true} 
     barStyle="light-content" 
    /> 
    <View style={styles.chapterListHeader}> 
     <Text style={styles.chapterListTitleText}>Chapters</Text> 
     <Image 
     style={styles.clutchLogoImage} 
     resizeMode="contain" 
     source={require('../Assets/Images/clutchLogoSmall.png')} 
     /> 
    </View> 
    <ListView 
     dataSource={this.state.dataSource} 
     renderRow={this.renderChapter.bind(this)} 
     renderFooter={this.renderFooter.bind(this)} 
     style={styles.chapterList} 
     onEndReached={() => {console.log('end reached')}} 
     renderSeparator={(sectionID, rowID) => <View key={`${sectionID}-${rowID}`} style={styles.separator} />} 
    /> 

    <View> 
     <View> 

     <TabBarIOS> 
      <TabBarIOS.Item 
      systemIcon="history" 
      selected={this.state.selectedTab === 'tabOne'} 
      onPress={() => this.setTab('tabOne')} 
      ></TabBarIOS.Item> 

      <TabBarIOS.Item 
      systemIcon="bookmarks" 
      selected={this.state.selectedTab === 'tabTwo'} 
      onPress={() => this.setTab('tabTwo')} 
      ></TabBarIOS.Item> 

      <TabBarIOS.Item 
      systemIcon="more" 
      selected={this.state.selectedTab === 'tabThree'} 
      onPress={() => this.setTab('tabThree')} 
      ></TabBarIOS.Item> 
     </TabBarIOS> 
     </View> 
    </View> 

    </View> 
); 
} 

答えて

1

はあなたListViewViewの高さマイナスあなたTabBarの高さを作ってみましたがありますか?これにより、ListViewの最後の項目がTabBarコンポーネントの下に隠れないようになります。

関連する問題