react-native-switch
react-native-switch copied to clipboard
activeText is showing instead of the text we pass
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
I have the same Issue
I have changed the code in node_modules/react-native-switch/lib/Switch.js as I mentioned and it's working fine
Please use GitHub version instead of NPM and confirm that this issue is still relevant. Thanks.
Can this not be updated on npm?