leecade / leecade/react-native-swiper
React Native- There is way to display all the data in tables when using swiper to swipe to the next table?
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 10.5k
- Forks
- 2.3k
- PR merge metrics
- No merged PRs in 30d
Description
Which OS ?
There is way to display all the data in tables when using "swiper" to swipe to the next table ?
How can I view all the data as I flip between table and table?
At the moment it only shows me one table and not the rest of the tables.
import Swiper from 'react-native-swiper'
export default class InfoTable extends Component {
constructor(props) {
super(props);
this.state = {
tableHead2: ['banana'],
tableData2: [
['kind', this.props.headerInfo.ORDER_TYPE_TXT],
['name', this.props.headerInfo.INITIATOR_NAME],
['place', this.props.headerInfo.FUNC_LOC_TXT],
['equipment', this.props.headerInfo.EQUIPMENT_TXT]]
}
}
componentWillReceiveProps(nextProps) {
if (nextProps.headerInfo != null) {
this.setState({ tableHead0: [nextProps.headerInfo] })
}
alert(JSON.stringify(nextProps))
}
render() {
const state = this.state;
return (
<Swiper style={styles.wrapper} showsButtons={true}>
<ScrollView>
<View style={styles.container}>
<Table borderStyle={{ borderWidth: 2, borderColor: '#d83dff' }}>
<Row data={state.tableHead2} style={styles.head} textStyle={styles.headText} />
<Rows data={state.tableData2} textStyle={styles.text} />
</Table>
</View>
</ScrollView>
</Swiper>
)
}
}
Version
Which versions are you using:
- react-native-swiper v?
- react-native v0.?.?
Expected behaviour
Actual behaviour
How to reproduce it>
To help us, please fork this component, modify one example in examples folder to reproduce your issue and include link here.
Steps to reproduce
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the supplied InfoTable render and the related example in the examples folder. Reproduce the report after obtaining the missing react-native-swiper and React Native versions, then inspect how Swiper children and the table data are provided. Done means the expected tables are visible while swiping and the reproduction is documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react-native
- Domain
- frontend, mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100