No Description

App.js 977B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /**
  2. * Sample React Native App
  3. * https://github.com/facebook/react-native
  4. *
  5. * @format
  6. * @flow
  7. */
  8. import React, { Component } from 'react';
  9. import { Platform, StyleSheet } from 'react-native';
  10. import { WebView } from '../'
  11. const instructions = Platform.select({
  12. ios: 'Press Cmd+R to reload,\n' + 'Cmd+D or shake for dev menu',
  13. android:
  14. 'Double tap R on your keyboard to reload,\n' +
  15. 'Shake or press menu button for dev menu',
  16. });
  17. type Props = {};
  18. export default class App extends Component<Props> {
  19. render() {
  20. return (
  21. <WebView style={styles.container} source={{ url: "https://infinite.red/ignite" }} />
  22. );
  23. }
  24. }
  25. const styles = StyleSheet.create({
  26. container: {
  27. flex: 1,
  28. justifyContent: 'center',
  29. alignItems: 'center',
  30. backgroundColor: '#F5FCFF',
  31. },
  32. welcome: {
  33. fontSize: 20,
  34. textAlign: 'center',
  35. margin: 10,
  36. },
  37. instructions: {
  38. textAlign: 'center',
  39. color: '#333333',
  40. marginBottom: 5,
  41. },
  42. });