Skip to content

Instantly share code, notes, and snippets.

@yogieputra8
Created March 1, 2018 13:51
Show Gist options
  • Save yogieputra8/4686337df6706a90341cd6b09757d3a0 to your computer and use it in GitHub Desktop.
Save yogieputra8/4686337df6706a90341cd6b09757d3a0 to your computer and use it in GitHub Desktop.
/**
* 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}}
/>
)
}
}
@ekokurniawans
Copy link

kalo source nya ambil dari field, syntax nya gimana ?
sy coba ini source={{uri: {field} }} ga bisa

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment