Created
March 1, 2018 13:51
-
-
Save yogieputra8/4686337df6706a90341cd6b09757d3a0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Sample React Native App | |
* https://github.com/facebook/react-native | |
* @flow | |
*/ | |
import React, { Component } from 'react'; | |
import { | |
Platform, | |
StyleSheet, | |
WebView, | |
Text, | |
View | |
} from 'react-native'; | |
export default class App extends Component{ | |
render() { | |
return ( | |
<WebView | |
source={{uri: 'http://docs.google.com/gview?embedded=true&url= https://www.golang-book.com/public/pdf/gobook.0.pdf'}} | |
style={{marginTop: 20}} | |
/> | |
) | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
kalo source nya ambil dari field, syntax nya gimana ?
sy coba ini source={{uri: {field} }} ga bisa