-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat(view-files-complete): view files compelte * feat(files): updating files * fix(files): files overlapping * fix(files): routes updated * feat(view-files): view files in a bigger screen Co-authored-by: Matt McCoy <[email protected]> Co-authored-by: Matt McCoy <[email protected]>
- Loading branch information
1 parent
fdb697a
commit 1dcca45
Showing
5 changed files
with
48 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import React from 'react'; | ||
import { SafeAreaView, Text, View } from 'react-native'; | ||
|
||
import { RouteProp } from '@react-navigation/native'; | ||
import WebView from 'react-native-webview'; | ||
|
||
import { BackButton } from '../components/nav_buttons/BackButton'; | ||
import { AppStackParamList } from '../navigation/types'; | ||
|
||
type SingleFileProps = RouteProp<AppStackParamList, 'SingleFile'>; | ||
|
||
export default function SingleFile({ route }: { route: SingleFileProps }) { | ||
const { url } = route.params; | ||
|
||
return ( | ||
<SafeAreaView className="flex-1 bg-carewallet-white"> | ||
<View className="flex-row items-center justify-between border-b border-carewallet-lightgray bg-carewallet-white px-3 pb-4"> | ||
<BackButton /> | ||
<Text className="flex-1 pr-20 text-center text-xl font-bold text-carewallet-blue"> | ||
View Files | ||
</Text> | ||
</View> | ||
<View className="flex-1"> | ||
<WebView | ||
source={{ uri: url }} | ||
className="flex-1 rounded-md border border-carewallet-gray" | ||
/> | ||
</View> | ||
</SafeAreaView> | ||
); | ||
} |