Skip to content

Instantly share code, notes, and snippets.

@Yassir4
Last active March 29, 2022 11:07
Show Gist options
  • Select an option

  • Save Yassir4/746fd6e032d0fa2da9459319bf16d521 to your computer and use it in GitHub Desktop.

Select an option

Save Yassir4/746fd6e032d0fa2da9459319bf16d521 to your computer and use it in GitHub Desktop.

Revisions

  1. Yassir4 revised this gist Mar 29, 2022. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion App.js
    Original file line number Diff line number Diff line change
    @@ -9,7 +9,7 @@ function App() {
    <Stack.Navigator>
    <Stack.Screen name="Home" component={HomeScreen} />
    </Stack.Navigator>
    <View />
    </View>
    </PortalProvider>
    </NavigationContainer>
    );
  2. Yassir4 revised this gist Mar 29, 2022. 1 changed file with 1 addition and 2 deletions.
    3 changes: 1 addition & 2 deletions App.js
    Original file line number Diff line number Diff line change
    @@ -3,14 +3,13 @@ function App() {
    <NavigationContainer>
    <PortalProvider>
    {/* view wrapper to fix the menu display in android */}

    <View style={{flex: 1}}>
    {/* our menu portal Host */}
    <PortalHost name="menu" />
    <Stack.Navigator>
    <Stack.Screen name="Home" component={HomeScreen} />
    </Stack.Navigator>
    <View>
    <View />
    </PortalProvider>
    </NavigationContainer>
    );
  3. Yassir4 revised this gist Mar 29, 2022. 1 changed file with 3 additions and 2 deletions.
    5 changes: 3 additions & 2 deletions App.js
    Original file line number Diff line number Diff line change
    @@ -2,9 +2,10 @@ function App() {
    return (
    <NavigationContainer>
    <PortalProvider>
    // view wrapper to fix the menu display in android
    {/* view wrapper to fix the menu display in android */}

    <View style={{flex: 1}}>
    // our menu portal Host
    {/* our menu portal Host */}
    <PortalHost name="menu" />
    <Stack.Navigator>
    <Stack.Screen name="Home" component={HomeScreen} />
  4. Yassir4 revised this gist Mar 29, 2022. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion App.js
    Original file line number Diff line number Diff line change
    @@ -2,11 +2,14 @@ function App() {
    return (
    <NavigationContainer>
    <PortalProvider>
    // our menu portal Host
    // view wrapper to fix the menu display in android
    <View style={{flex: 1}}>
    // our menu portal Host
    <PortalHost name="menu" />
    <Stack.Navigator>
    <Stack.Screen name="Home" component={HomeScreen} />
    </Stack.Navigator>
    <View>
    </PortalProvider>
    </NavigationContainer>
    );
  5. Yassir4 revised this gist Feb 20, 2022. No changes.
  6. Yassir4 created this gist Feb 20, 2022.
    13 changes: 13 additions & 0 deletions App.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    function App() {
    return (
    <NavigationContainer>
    <PortalProvider>
    // our menu portal Host
    <PortalHost name="menu" />
    <Stack.Navigator>
    <Stack.Screen name="Home" component={HomeScreen} />
    </Stack.Navigator>
    </PortalProvider>
    </NavigationContainer>
    );
    }