Skip to content
This repository has been archived by the owner on Aug 14, 2024. It is now read-only.

React Native 0.19 problem with props #11

Closed
lopezjurip opened this issue Feb 1, 2016 · 4 comments
Closed

React Native 0.19 problem with props #11

lopezjurip opened this issue Feb 1, 2016 · 4 comments

Comments

@lopezjurip
Copy link

Updated to RN 0.19 and <Tab/> props are not working:

import { Tab, TabLayout } from 'react-native-android-tablayout'
import Colors from '../../global/colors'
<TabLayout
  style={styles.tabs}
  selectedTabIndicatorColor="white"
  selectedTab={this.state.selected}
  onTabSelected={e => this.setState({ selected: e.nativeEvent.position })}>

  <Tab name="Mapas" accessibilityLabel="Mapas" textColor={this.state.selected === 0 ? 'white' :'#d3d3d3'} />
  <Tab name="Información" accessibilityLabel="Información" textColor={this.state.selected === 1 ? 'white' :'#d3d3d3'} />

</TabLayout>
const styles = StyleSheet.create({
  tabs: {
    elevation: 10,
    backgroundColor: Colors.MAIN,
  },
})

image

Expected tabs with white text and white indicator

@Overload119
Copy link

+1 I have the same issue.

@AlbertBrand
Copy link
Owner

Confirmed. I'll have a look tomorrow.

@AlbertBrand
Copy link
Owner

This is caused by the breaking package name change mentioned in facebook/react-native#5649

@AlbertBrand
Copy link
Owner

Fixed in 0.1.0, which is now RN 0.19+ only.

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