File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,10 @@ import type {
19
19
PaperSelectProps ,
20
20
PaperSelectTextInputProps ,
21
21
} from '../interface/paperSelect.interface' ;
22
- import { useInternalTheme } from 'react-native-paper/lib/typescript/src/core/theming' ;
22
+ import {
23
+ ThemeProvider ,
24
+ useInternalTheme ,
25
+ } from 'react-native-paper/lib/typescript/src/core/theming' ;
23
26
24
27
const PaperSelect = ( {
25
28
// Required props
@@ -229,7 +232,7 @@ const PaperSelect = ({
229
232
} ;
230
233
231
234
return (
232
- < >
235
+ < ThemeProvider theme = { theme } >
233
236
< View style = { [ styles . container , containerStyle ] } >
234
237
< TextInput
235
238
{ ...textInputProps }
@@ -248,7 +251,6 @@ const PaperSelect = ({
248
251
icon = "chevron-down"
249
252
/>
250
253
}
251
- theme = { theme }
252
254
/>
253
255
{ errorText ? (
254
256
< Text
@@ -325,7 +327,7 @@ const PaperSelect = ({
325
327
</ Dialog >
326
328
</ Portal >
327
329
</ View >
328
- </ >
330
+ </ ThemeProvider >
329
331
) ;
330
332
} ;
331
333
You can’t perform that action at this time.
0 commit comments