mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-05-20 04:21:11 +08:00
Merge pull request #28 from janicduplessis/transparent-card
Add transparentCard option to fix cards with a transparent bg when using screens
This commit is contained in:
@@ -6,6 +6,7 @@ import { createStackNavigator } from 'react-navigation-stack';
|
||||
import { ListSection, Divider } from 'react-native-paper';
|
||||
|
||||
import SimpleStack from './src/SimpleStack';
|
||||
import TransparentStack from './src/TransparentStack';
|
||||
|
||||
// Comment the following two lines to stop using react-native-screens
|
||||
import { useScreens } from 'react-native-screens';
|
||||
@@ -13,6 +14,11 @@ useScreens();
|
||||
|
||||
const data = [
|
||||
{ component: SimpleStack, title: 'Simple', routeName: 'SimpleStack' },
|
||||
{
|
||||
component: TransparentStack,
|
||||
title: 'Transparent',
|
||||
routeName: 'TransparentStack',
|
||||
},
|
||||
];
|
||||
|
||||
class Home extends React.Component {
|
||||
|
||||
Reference in New Issue
Block a user