Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

activeText is showing instead of the text we pass #71

Open
jamesawer3 opened this issue Nov 7, 2019 · 4 comments
Open

activeText is showing instead of the text we pass #71

jamesawer3 opened this issue Nov 7, 2019 · 4 comments

Comments

@jamesawer3
Copy link

Installed this npm using npm install --save react-native-switch. In my switch.js code was wrong. Change

            {renderActiveText && (
              <Text style={[styles.text, styles.paddingRight, activeTextStyle]}>
                activeText
              </Text>
            )}

to

            {renderActiveText && (
              <Text style={[styles.text, styles.paddingRight, activeTextStyle]}>
                {activeText}
              </Text>
            )}

in Switch.js

@mzparacha
Copy link

I have the same Issue

@jamesawer3
Copy link
Author

I have changed the code in node_modules/react-native-switch/lib/Switch.js as I mentioned and it's working fine

@shahen94
Copy link
Owner

Please use GitHub version instead of NPM and confirm that this issue is still relevant. Thanks.

@hmust92
Copy link

hmust92 commented Jan 19, 2020

Can this not be updated on npm?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants