aksonov / react-native-tabs

React Native platform-independent tabs. Could be used for bottom tab bars as well as sectioned views (with tab buttons)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Selected Can't Change Props

skytoup opened this issue · comments

line 60:
{!self.props.selected && (self.state.selected == el.props.name) ? React.cloneElement(el, self.state.props) : el}

Should be?

{!self.props.locked && (self.state.selected == el.props.name) ? React.cloneElement(el, self.state.props) : el}

Not sure what you're trying to do here. The locked prop is only for enabling the onLongPress action and disabling onPress. It has nothing to do with rendering. Could you provide more details on the problem you're seeing?

Please check latest version, now component is totally stateless.