Skip to content

Commit 82f3ffc

Browse files
author
Lucas Bento
committed
Change the opacity background on Android to be black
1 parent a9bd791 commit 82f3ffc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ class ImageCrop extends Component {
335335
left: (isLower ? 0 : this.state.cropPaddingLeft),
336336
...Platform.select({
337337
android: {
338-
backgroundColor: (isLower) ? 'rgba(255,255,255, 0.5)' : 'transparent',
338+
backgroundColor: (isLower) ? 'rgba(0, 0, 0, 0.5)' : 'transparent',
339339
},
340340
}),
341341
}]}
@@ -358,7 +358,7 @@ class ImageCrop extends Component {
358358
{Platform.OS === 'android' && isLower && (
359359
<View style={{
360360
flex: 1,
361-
backgroundColor: (isLower) ? 'rgba(255,255,255,0.5)' : 'transparent',
361+
backgroundColor: (isLower) ? 'rgba(0, 0, 0, 0.5)' : 'transparent',
362362
}} />
363363
)}
364364
</Image>

0 commit comments

Comments
 (0)