Skip to content

Instantly share code, notes, and snippets.

@Nkzn
Created February 20, 2020 05:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Nkzn/208b9c56ce203ae2f056f6f206256df3 to your computer and use it in GitHub Desktop.
Save Nkzn/208b9c56ce203ae2f056f6f206256df3 to your computer and use it in GitHub Desktop.
This is a dream.
import React from 'react';
import { View, Text } from 'react-native';
import { WebView } from 'react-native-webview';
const HybridComponent: React.FC = () => (
<View>
<Text>Rendering as native text with TextView/UIView</Text>
<WebView>
<View>
<Text>Rendering as DOM tree with WebView/WkWebView</Text>
<Text>Powered by React Native for Web</Text>
</View>
</WebView>
</View>
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment