Skip to content

Fixed alignment issue in list swipe header examples. #117

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: CRNA
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/screens/listSwipe/basic-list-swipe.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { Component } from "react";
import { Platform } from "react-native";
import {
Container,
Header,
Expand All @@ -25,7 +26,7 @@ class BasicListSwipe extends Component {
<Icon name="arrow-back" />
</Button>
</Left>
<Body style={{ flex: 3 }}>
<Body style={{ flex: Platform.OS === 'ios' ? 3 : 1 }}>
<Title>Single SwipeRow</Title>
</Body>
<Right />
Expand Down
4 changes: 2 additions & 2 deletions src/screens/listSwipe/multi-list-swipe.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { Component } from "react";
import { ListView } from "react-native";
import { Platform, ListView } from "react-native";
import {
Container,
Header,
Expand Down Expand Up @@ -51,7 +51,7 @@ class MultiListSwipe extends Component {
<Icon name="arrow-back" />
</Button>
</Left>
<Body style={{ flex: 3 }}>
<Body style={{ flex: Platform.OS === 'ios' ? 3 : 1 }} >
<Title>Multiple List Swipe</Title>
</Body>
<Right />
Expand Down
3 changes: 2 additions & 1 deletion src/screens/listSwipe/swipe-row-style.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { Component } from "react";
import { Platform } from "react-native";
import {
Container,
Header,
Expand All @@ -25,7 +26,7 @@ class SwipeRowCustomStyle extends Component {
<Icon name="arrow-back" />
</Button>
</Left>
<Body style={{ flex: 3 }}>
<Body style={{ flex: Platform.OS === 'ios' ? 3 : 1 }}>
<Title>Swipe Row Custom Style</Title>
</Body>
<Right />
Expand Down