File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 11import React , { useState , useEffect } from 'react' ;
22import { Appearance } from 'react-native' ;
3+ import PropTypes from "prop-types"
34
45import { ThemeService , DefaultThemeConfig } from './ThemeService' ;
56import { 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+
7180export { ThemeContext , ThemeContainer } ;
Original file line number Diff line number Diff line change 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 }
You can’t perform that action at this time.
0 commit comments