Merge pull request 'Fix nav param + rename to useRecordingDetails' (#132) from loewy/fix-nav-param into master
Reviewed-on: railbird/railbird-mobile#132 Reviewed-by: Kat Huang <kkathuang@gmail.com>
This commit is contained in:
commit
294198958d
@ -155,7 +155,7 @@ export default function CameraScreen({
|
||||
const onMediaCaptured = useCallback(
|
||||
(media: PhotoFile | VideoFile) => {
|
||||
console.log(`Media captured! ${JSON.stringify(media)}`);
|
||||
navigation.push("SaveVideo", {
|
||||
navigation.push("SaveRecording", {
|
||||
videoId: uploadManager?.videoId,
|
||||
...params,
|
||||
});
|
||||
|
@ -54,7 +54,7 @@ function useDropdown<T>(
|
||||
};
|
||||
}
|
||||
|
||||
export const useVideoDetails = ({
|
||||
export const useRecordingDetails = ({
|
||||
params: {
|
||||
mode,
|
||||
videoId,
|
||||
|
@ -9,7 +9,7 @@ import {
|
||||
View,
|
||||
} from "react-native";
|
||||
import DropDownPicker from "react-native-dropdown-picker";
|
||||
import { useVideoDetails } from "../../component/recording/use-recording-details";
|
||||
import { useRecordingDetails } from "../../component/recording/use-recording-details";
|
||||
import { globalInputStyles } from "../../styles";
|
||||
import { recordStyles as styles } from "./styles";
|
||||
|
||||
@ -22,7 +22,7 @@ export default function VideoDetails({ navigation, route }): React.JSX.Element {
|
||||
tableSize,
|
||||
handleSubmit,
|
||||
loading,
|
||||
} = useVideoDetails({ params: route.params, navigation });
|
||||
} = useRecordingDetails({ params: route.params, navigation });
|
||||
|
||||
const dropDownStyles = {
|
||||
style: globalInputStyles.dropdownStyle,
|
||||
|
Loading…
Reference in New Issue
Block a user