Skip to content

Conversation

@arpitBhalla
Copy link
Member

@arpitBhalla arpitBhalla commented Sep 21, 2022

Fixes #3632

const theme = createTheme({
  components: {
-    Input: (props) => ({
+    Input: (props, theme) => ({
      disabledInputStyle: {
-       color: "grey",
+       color: theme.colors.disabled,
      },
    }),
  },
});

@github-actions
Copy link
Contributor

Hey, @arpitBhalla PR Preview Build succeeded! ✅

Install using

 npm i react-native-elements/react-native-elements#base-3645 react-native-elements/react-native-elements#themed-3645

@codecov
Copy link

codecov bot commented Sep 21, 2022

Codecov Report

Merging #3645 (da7fd32) into next (64a1160) will not change coverage.
The diff coverage is 0.00%.

@@           Coverage Diff           @@
##             next    #3645   +/-   ##
=======================================
  Coverage   79.23%   79.23%           
=======================================
  Files          87       87           
  Lines        1811     1811           
  Branches      802      802           
=======================================
  Hits         1435     1435           
  Misses        370      370           
  Partials        6        6           
Impacted Files Coverage Δ
packages/themed/src/config/ThemeProvider.tsx 63.82% <ø> (ø)
packages/themed/src/config/withTheme.tsx 86.48% <0.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@arpitBhalla arpitBhalla merged commit 4caef0c into react-native-elements:next Oct 1, 2022
@arpitBhalla arpitBhalla deleted the 3632 branch October 1, 2022 18:48
github-actions bot pushed a commit that referenced this pull request Oct 1, 2022
github-actions bot pushed a commit that referenced this pull request Oct 1, 2022
@arpitBhalla arpitBhalla changed the title feat: add theme to ComponentFunctionProps feat: add ComponentFunctionProps to theme Dec 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

How to use the current theme color (light/dark) in the style definition inside a Theme

1 participant