How to generate a site map

Hi,

So i have the following linking configuration

import * as Linking from 'expo-linking';

export default {
  prefixes: [Linking.makeUrl('/')],
  config: {
    screens: {
      Newsletters: {
        screens: {
          NewslettersHome: {
            path: 'newsletters/all'
          },
          NewslettersView: {
            path: 'newsletters/view/:bucketKey'
          }
        }
      },
      Discover: {
        screens: {
          DiscoverHome: {
            path: 'discover/all'
          },
          Demo: {
            path: 'discover/demo'
          },
          Recent: {
            path: 'discover/recent'
          },
          Tag: {
            path: 'discover/tag/:tag'
          },
          Sources: {
            path: 'discover/sources/:tag'
          },
          DiscoverSource: {
            path: 'discover/source/:domain'
          },
          Search: {
            path: 'discover/search'
          },
          DiscoverView: {
            path: 'discover/view/:bucketKey'
          }
        }
      },
      Saved: {
        screens: {
          SavedHome: {
            path: 'saved/all'
          },
          SavedView: {
            path: 'saved/view/:bucketKey'
          }
        }
      },
      Following: {
        screens: {
          SubscriptionsHome: {
            path: 'following/all'
          },
          SubscriptionsSource: {
            path: 'following/source/:domain'
          },
          SubscriptionsView: {
            path: 'following/view'
          }
        }
      },
      ['Give Feedback']: {
        path: 'feedback'
      },
      Profile: {
        path: 'profile'
      },
      SignIn: {
        path: 'siginin'
      },
      FAQ: {
        path: 'faq'
      },
      Admin: {
        screens: {
          AdminRecent: {
            screens: {
              AdminRecentHome: {
                path: 'admin/recent/all'
              },
              AdminRecentView: {
                path: 'admin/recent/view/:bucketKey'
              },
            }
          },
          AdminSources: {
            screens: {
              AdminSourcesHome: {
                path: 'admin/sources/all'
              },
              AdminSourcesSource: {
                path: 'admin/source/:domain'
              },
              AdminSourcesView: {
                path: 'admin/source/view/:bucketKey'
              }
            }
          }
        }
      }
    }
  },
};

What is the recommended approach to site map? And for SEO purposes is react-helmet the way to go? Thanks in advance.

@alvbert sorry I didn’t understand. Are you saying that sitemaps are automatically generated? I don’t think that is the case.

Hi

Off hand I don’t know of some built-in way to generate a site map. But since your linking config is a pretty simple data structure it seems you should be able to write something that walks through your config and outputs the necessary components.

alvbert seems to be a bot.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.