Skip to content

Commit 1be07ad

Browse files
authored
Merge pull request #2 from b0bby0ne/master
Proptypes
2 parents 4f3be87 + efbdaa7 commit 1be07ad

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

Theme/ThemeContext.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import React, {useState, useEffect} from 'react';
22
import {Appearance} from 'react-native';
3+
import PropTypes from "prop-types"
34

45
import {ThemeService, DefaultThemeConfig} from './ThemeService';
56
import {ThemeLocal} from './ThemeLocal';
@@ -68,4 +69,12 @@ function ThemeContainer({
6869
);
6970
}
7071

72+
ThemeContainer.propTypes = {
73+
children: PropTypes.any,
74+
data: PropTypes.object,
75+
initialThemeCode: PropTypes.string,
76+
cache: PropTypes.bool,
77+
onThemeDone: PropTypes.func
78+
};
79+
7180
export {ThemeContext, ThemeContainer};

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"peerDependencies": {
2626
"react": "^16.8.6",
2727
"react-native": ">=0.60.0",
28-
"@react-native-community/async-storage": ">=1.11.0"
28+
"@react-native-community/async-storage": ">=1.11.0",
29+
"prop-types": "15.7.2"
2930
}
3031
}

0 commit comments

Comments
 (0)