file-based routing in React Native using the Expo Router package that we installed eariler. By adding files to the app folder, you can create new screens that are automatically assigned a route matching the file name.

image.png

// Home.jsx
import { Link } from "expo-router";

*const Home = () => {
  return (
    <View>
      <Text>Reading List App</Text>*
      <Link href="/about">
      About Page</Link>
    </View>
  );
};

export default Home;
// about.jsx
import { Link } from "expo-router";

*const About = () => {
  return (
    <View>
      <Text>Abou Page</Text>*
      <Link href="/">
      Back to Home Page</Link>
    </View>
  );
};

export default About;
link: { marginVertical: 10, borderBottomWidth: 1, },

Before

image.png

After

image.png