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

selected item color and unselected item color #46

Open
hanarahmati opened this issue May 23, 2018 · 1 comment
Open

selected item color and unselected item color #46

hanarahmati opened this issue May 23, 2018 · 1 comment

Comments

@hanarahmati
Copy link

how can I change items color? when I use color in style both selected and unselected items color changed.

@hanarahmati
Copy link
Author

hanarahmati commented May 23, 2018

I found the way.
change in ReactWheelCurvedPickerManager.js

@Override
    protected ReactWheelCurvedPicker createViewInstance(ThemedReactContext reactContext) {
        ReactWheelCurvedPicker picker = new ReactWheelCurvedPicker(reactContext);
        picker.setTextColor(Color.LTGRAY);//change here
        picker.setCurrentTextColor(Color.BLACK);//and here
        picker.setTextSize(DEFAULT_TEXT_SIZE);
        picker.setItemSpace(DEFAULT_ITEM_SPACE);

        return picker;
    }

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

1 participant