Skip to content

Commit 6ad1af3

Browse files
authored
Merge pull request #8 from Vannevelj/master
Allow children to be passed through
2 parents 42d6d99 + 97e0cee commit 6ad1af3

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-animated-loader",
3-
"version": "0.0.8",
3+
"version": "0.0.9",
44
"description": "Useful to show lottie animation spinners in react-native mobile apps",
55
"main": "src/index.js",
66
"files": [

readme.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,9 @@ export default class Loader extends React.Component {
6363
source={require("./loader.json")}
6464
animationStyle={styles.lottie}
6565
speed={1}
66-
/>
66+
>
67+
<Text>Doing something...</Text>
68+
</AnimatedLoader>
6769
);
6870
}
6971
}

src/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ export default class AnimatedLoader extends React.PureComponent {
6767
>
6868
<View style={[styles.container, { backgroundColor: overlayColor }]}>
6969
<View>{this._renderLottie()}</View>
70+
{this.props.children}
7071
</View>
7172
</Modal>
7273
);

0 commit comments

Comments
 (0)