Skip to content

Commit

Permalink
fix(render): add if android
Browse files Browse the repository at this point in the history
  • Loading branch information
xcarpentier committed May 31, 2018
1 parent 138e77a commit 99e39ce
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,14 +96,15 @@ class PdfReader extends Component {
)
}

if (ready) {
if (ready && android) {
return (
<WebView
style={{ flex: 1, backgroundColor: 'rgb(82, 86, 89)' }}
source={{ uri: indexHtmlPath }}
/>
)
}

return <Loader />
}
}
Expand Down

0 comments on commit 99e39ce

Please sign in to comment.