Encountered an error while attempting to run a react native app on an android emulator:
None of these files exist:
* src\components\spacer\spacer.component(.native|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx|.android.js|.native.js|.js|.android.jsx|.native.jsx|.jsx|.android.json|.native.json|.json)
* src\components\spacer\spacer.component\index(.native|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx|.android.js|.native.js|.js|.android.jsx|.native.jsx|.jsx|.android.json|.native.json|.json)
5 | import { SvgXml } from "react-native-svg";
6 |
> 7 | import Spacer from "../../../components/spacer/spacer.component";
| ^
8 | import star from "../../../../assets/star";
9 | import open from "../../../../assets/open";
10 |
at ModuleResolver.resolveDependency (C:\Users\rubyh\Documents\project\MealsToGo\node_modules\metro\src\node-haste\DependencyGraph\ModuleResolution.js:152:15)
...
...
src/components/spacer/spacer.component.js:
import React from "react";
import styled from "styled-components/native";
const TopSmall = styled.View`
margin-top: ${(props) => props.theme.space[1]};
`;
...
...
📜.eslintrc.js
📜.gitignore
📜App.js
📜app.json
📜babel.config.js
📜package-lock.json
📜package.json
Please provide assistance as I have been searching for a solution to this issue for nearly a week with no progress.