Help > Forum > General > Embedding a Forum into a React Native app

Embedding a Forum into a React Native app

You can embed a forum into your React Native app by using a WebView.

Here is example code that you can use:

import React from 'react';
import { StyleSheet, View } from 'react-native';
import { WebView } from 'react-native-webview';

const HomeScreen = () => {
  return (
      <View style={{ flex: 1, width: '100%'}}>
      <WebView
        overScrollMode='content'
          source={{ uri: 'https://FORUM_ADDRESS' }}
        />
      </View>
  );
}
export default HomeScreen;

const styles = StyleSheet.create({});

Replace https://FORUM_ADDRESS with your forum address.


If you still need help, please contact us.