Skip to content

Commit 8a76c2d

Browse files
vijaychouhan-railsniftylettuce
authored andcommitted
feat: added ability to pass indicatorStyle
Fixes for loader position change, we can change the loader position by passing props indicatorStyle for an ex: { justifyContent: 'flex-start', top: 100 }
1 parent c779cd6 commit 8a76c2d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,9 @@ export default class Spinner extends React.Component {
113113
<ActivityIndicator
114114
color={this.props.color}
115115
size={this.props.size}
116-
style={{ flex: 1 }}
116+
style={[{ flex: 1 }, { ...this.props.indicatorStyle } ]}
117117
/>
118-
<View style={styles.textContainer}>
118+
<View style={[styles.textContainer, {...this.props.indicatorStyle}]}>
119119
<Text style={[styles.textContent, this.props.textStyle]}>{this.state.textContent}</Text>
120120
</View>
121121
</View>);

0 commit comments

Comments
 (0)