Skip to content
This repository has been archived by the owner on Nov 27, 2022. It is now read-only.

How can I make the view inside the tab scrollable ? #387

Closed
ODelibalta opened this issue Nov 8, 2017 · 2 comments
Closed

How can I make the view inside the tab scrollable ? #387

ODelibalta opened this issue Nov 8, 2017 · 2 comments

Comments

@ODelibalta
Copy link

Using

<TabViewAnimated
              style={styles.container} 
              navigationState={this.state}
              renderScene={this._renderScene}
              renderHeader={this._renderHeader}
              onIndexChange={this._handleIndexChange}
              scrollEnabled={true}
            />  

And my tab views

_renderScene = ({ route }) => {
    switch (route.key) {
    case '1':
      return <Demographics 
                style={styles.container} 
                data={this.state.employee}
                updateEmployeeState={this._updateEmployeeState}
                positions={this.props.positions}
              />;
    case '2':
      return <ServiceCategories 
                style={styles.container} 
                data={this.state.employee}
                updateEmployeeState={this._updateEmployeeState}
              />;
    default:
      return null;
    }
  }

I want service categories screen to behave like a scrollview and wrapped the contents in scrollview but it did not work.

@ODelibalta
Copy link
Author

Nevermind found this

#105 (comment)

and it works. Please close

@onstash
Copy link

onstash commented Nov 8, 2017

Hey @satya164. I think this issue can be closed.

@satya164 satya164 closed this as completed Nov 8, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants