diff --git a/Template.js b/Template.js index ae315b7..73716b8 100644 --- a/Template.js +++ b/Template.js @@ -1,4 +1,4 @@ -import { Pressable, ScrollView, StyleSheet, Text, View } from "react-native"; +import {Pressable, ScrollView, StyleSheet, Text, View} from "react-native"; const Component = () => { @@ -9,7 +9,7 @@ const Component = () => { return ( -); + ); }; const styles = StyleSheet.create({}); diff --git a/src/components/entity/modules/ModuleView.js b/src/components/entity/modules/ModuleView.js index f94abc4..c055efb 100644 --- a/src/components/entity/modules/ModuleView.js +++ b/src/components/entity/modules/ModuleView.js @@ -3,7 +3,7 @@ import FullWidthImage from "react-native-fullwidth-image"; import {Button, ButtonTray} from "../../UI/Button"; import Icons from "../../UI/Icons.js" -const ModuleView = ({ module, onDelete }) => { +const ModuleView = ({module, onDelete}) => { // Initialisation ------------- // State ---------------------- // Handlers ------------------- diff --git a/src/components/screens/ModuleListScreen.js b/src/components/screens/ModuleListScreen.js index 575396f..c1655f4 100644 --- a/src/components/screens/ModuleListScreen.js +++ b/src/components/screens/ModuleListScreen.js @@ -1,5 +1,5 @@ import {useState} from "react"; -import {StyleSheet} from "react-native"; +import {LogBox, StyleSheet} from "react-native"; import Screen from "../layout/Screen"; import ModuleList from "../entity/modules/ModuleList"; import initialModules from "../../data/modules.js"; @@ -8,6 +8,7 @@ import RenderCount from "../UI/RenderCount"; const ModuleListScreen = ({navigation}) => { // Initialisation ------------- // let modules = initialModules; + LogBox.ignoreLogs(['Non-serializable values were found in the navigation state']); // State ---------------------- const [modules, setModules] = useState(initialModules); @@ -24,12 +25,13 @@ const ModuleListScreen = ({navigation}) => { navigation.goBack(); } - const handleSelect = (module) => navigation.navigate('ModuleViewScreen', { module, onDelete }); + const handleSelect = (module) => + navigation.navigate('ModuleViewScreen', {module, onDelete}); // View ----------------------- return ( - + {/**/} );