Skip to content

Commit 0f31a2f

Browse files
Frank Jensenkmagiera
authored andcommitted
Remove overlay 70% opacity to allow more flexibility (#629)
## Purpose Remove the forced 70% opacity overlay to allow more flexibility - for instance if you want 90% instead. ## Use When declaring overlay background, you could feed it `rgba(255, 255, 255, 0.9)` to achieve a white overlay that is only slightly transparent.
1 parent b58945a commit 0f31a2f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

DrawerLayout.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export default class DrawerLayout extends Component<PropType, StateType> {
7878
drawerType: 'front',
7979
edgeWidth: 20,
8080
minSwipeDistance: 3,
81-
overlayColor: 'black',
81+
overlayColor: 'rgba(0, 0, 0, 0.7)',
8282
drawerLockMode: 'unlocked',
8383
};
8484

@@ -369,7 +369,7 @@ export default class DrawerLayout extends Component<PropType, StateType> {
369369
invariant(this._openValue, 'should be set');
370370
const overlayOpacity = this._openValue.interpolate({
371371
inputRange: [0, 1],
372-
outputRange: [0, 0.7],
372+
outputRange: [0, 1],
373373
extrapolate: 'clamp',
374374
});
375375
const dynamicOverlayStyles = {

0 commit comments

Comments
 (0)