Accessing an intranet Sharepoint page using React Native webview

Viewed 70

using some basic code, I am trying to access a sharepoint page:

import { WebView } from 'react-native-webview'

const ExampleScreen = ({ navigation }) => {
    return (
        <WebView style={{flex: 1}} 
        source={{uri: 'https://example.intra.net/sites/1/ProjectName/SitePages/Nameofpage.aspx'}}/>
    )
}

export default ExampleScreen;

When I pull up the page on Safari, I can see it, because I'm logged in. However when I try to look at the page in the Expo Go test build, it says "401 Unauthorized". What is the process for authenticating something like this in a native app? I am a novice and I don't understand how it works.

0 Answers
Related