Skip to content

Commit e0151ba

Browse files
Sankhadeep RoySankhadeep Roy
authored andcommitted
toolbar fix
1 parent 9ae0c2c commit e0151ba

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Components/Widgets/Toolbar.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* @flow */
22
'use strict';
33

4-
import React, { Text, View, TouchableOpacity, Component} from 'react-native';
4+
import React, { Text, View, TouchableOpacity, Component, Platform} from 'react-native';
55
import NativeBaseComponent from '../Base/NativeBaseComponent';
66
import navbarStyle from './../Styles/navbar.js';
77
import _ from 'lodash';
@@ -47,20 +47,20 @@ export default class Toolbar extends NativeBaseComponent {
4747
return(
4848
<View {...this.prepareRootProps()}>
4949
{ !Array.isArray(this.props.children) &&
50-
<View>
50+
<View >
5151
{this.props.children}
5252
</View>}
5353

5454
{ Array.isArray(this.props.children) &&
55-
<View >
55+
<View style={{flex:1}}>
5656
{this.props.children[0]}
5757
</View>}
5858
{ Array.isArray(this.props.children) &&
59-
<View >
59+
<View style={{flex:5}}>
6060
{this.props.children[1]}
6161
</View>}
6262
{ Array.isArray(this.props.children) &&
63-
<View >
63+
<View style={{flex:1}}>
6464
{this.props.children[2]}
6565
</View>}
6666

Utils/computeProps.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
var React = require('react-native');
22

3-
var StyleSheetRegistry = require('react-native/Libraries/ReactNative/ReactNativePropRegistry');
3+
var StyleSheetRegistry = require('react-native/Libraries/StyleSheet/StyleSheetRegistry');
44

55
module.exports = function(incomingProps, defaultProps) {
66

0 commit comments

Comments
 (0)