April 2017
Intermediate to advanced
414 pages
8h 14m
English
The next thing to do is modify the push method of navigator for Android:
// Expenses/app/components/PreviousMonthsList/index.js
...
import {
Platform,
...
} from 'react-native';
...
export default class PreviousMonthsList extends Component {
...
render () {
<View style={ Platform.OS === 'ios' ? styles.previousMonthsListContainer : {} }>
...
</View>
}
...
I made a styling adjustment for the View container that wraps around the rest of PreviousMonthsList for Android devices to keep the ListView just below the navigation bar on Android.
There have been no changes to the original rendering method if on iOS:
_renderSelectedMonth (rowData, sectionID, rowID) {
if (Platform.OS === 'ios') {
...
}
The ...
Read now
Unlock full access