File tree Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import { Button, Icon } from 'react-native-elements';
8
8
import Swiper from 'react-native-swiper' ;
9
9
import queryString from 'query-string' ;
10
10
import CookieManager from 'react-native-cookies' ;
11
+ import { SafeAreaView } from 'react-navigation' ;
11
12
12
13
import { ViewContainer , ErrorScreen } from 'components' ;
13
14
import { colors , fonts , normalize } from 'config' ;
@@ -42,8 +43,17 @@ const Modal = styled.Modal`
42
43
43
44
const ModalWrapper = styled . View `
44
45
flex: 1;
45
- padding-top: 20;
46
- background-color: #1f2327;
46
+ background-color: ${ colors . githubDark }
47
+ ` ;
48
+
49
+ // https://github.com/facebook/react-native/issues/9090
50
+ const StyledSafeAreaView = styled ( SafeAreaView ) . attrs ( {
51
+ forceInset : Platform . select ( {
52
+ ios : { top : 'always' , bottom : 'never' } ,
53
+ android : { } ,
54
+ } ) ,
55
+ } ) `
56
+ background-color: ${ colors . githubDark } ;
47
57
` ;
48
58
49
59
const Slide = styled . View `
@@ -342,6 +352,7 @@ class Login extends Component {
342
352
visible = { this . state . modalVisible }
343
353
>
344
354
< ModalWrapper >
355
+ < StyledSafeAreaView />
345
356
< BrowserSection >
346
357
< WebView
347
358
source = { {
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ export const colors = {
29
29
lightPurple : '#bf54eb' ,
30
30
purple : '#8e44ad' ,
31
31
orange : '#e67e22' ,
32
- githubDark : '#1f2327 ' ,
32
+ githubDark : '#24292e ' ,
33
33
alabaster : '#f7f7f7' ,
34
34
topicLightBlue : '#f1f8ff' ,
35
35
} ;
You can’t perform that action at this time.
0 commit comments