Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Link several positions on the same page using pathPrefix #3818

Open
mitchiemt11 opened this issue Apr 26, 2022 · 0 comments
Open

Link several positions on the same page using pathPrefix #3818

mitchiemt11 opened this issue Apr 26, 2022 · 0 comments

Comments

@mitchiemt11
Copy link

Version

Tell us which versions you are using:

  • react-native-router-flux v4.0.0-beta.28
  • react v17.0.1
  • react-native v0.66.3

Expected behaviour

To open a certain tab on a page on the same scene given the specific path in android pathPrefix

Actual behaviour

The app only opens a name page without going to a specific position on that screen

Steps to reproduce

For non-obvious bugs, please fork this component, modify Example project to reproduce your issue and include link here.

  1. Include .* in scene path but it did not work

Reproducible Demo

Please provide a minimized reproducible demonstration of the problem you're reporting.

Issues that come with minimal repro's are resolved much more quickly than issues where a maintainer has to reproduce themselves.
I have my router.js defined like this

**import React from 'react';
import {ActionConst, Router, Scene} from 'react-native-router-flux';
import {trackScreen} from '../common/analytics'
import homePage from '../pages/homePage/homePage';
import landingPage from '../pages/landingPage/landingPage';

const RouterComponent = ({initialRouteName}) => {
const routeName = initialRouteName ? initialRouteName : 'home';
return (
<Router
uriPrefix={'app.test.com'}
initialRouteName={routeName}
onStateChange={trackScreen}





/>
I have the home page with 3 tabs in that page name Home, Family, Privacy.I would like to navigate using deep link to https://app.test.com/family in home page. Passing a path prop in scene does not work.

    Here is my .xml file to handle the deep link:
    ` <!--  Opens  https://app.test.com/family -->
    <intent-filter>
      <action android:name="android.intent.action.VIEW" />
      <category android:name="android.intent.category.DEFAULT" />
      <category android:name="android.intent.category.BROWSABLE" />
      <data android:scheme="https"
            android:host="app.test.com"
            android:pathPrefix="/family"
      />`
      
      Any help please!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant