2

I want to implement a Mini View or Floating View (for WebRTC calling) in React-Native that should be persist or opened until we close it and it should be remain opened if we navigate to other screen any idea about this?

enter image description here

1 Answer 1

0

You can create a component and add it along with the navigation. It will appear on all the screens. You can absolutely position and apply animation as per your requirement.

<SafeAreaProvider>
  <NavigationContainer>
    <Stack.Navigator>
      <Stack.Screen name="login" 
                    component={Login}
                    options={{
                      headerShown: false
                    }} />
      <Stack.Screen name="home" component={Home} />
      <Stack.Screen name="screen2" component={Screen2} />
      <Stack.Screen name="screen3" component={Screen3} />
    </Stack.Navigator>
    <IncomingCall /> // component that is floating and shared between screens
  </NavigationContainer>
</SafeAreaProvider>
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.