n4kz / react-native-material-dropdown

Material dropdown with consistent behaviour on iOS and Android
Other
732 stars 597 forks source link

How to show dropdown arrow on the far Left? #232

Open iamir4g opened 4 years ago

iamir4g commented 4 years ago

hi, I use renderAccessory to show my custom icon but I want to show this icon to left box of dropDown, how to manage this?

rollsroyc3 commented 4 years ago

renderLeftAccessory

iamir4g commented 4 years ago

@rollsroyc3 thank but didnt change. this is my code:

renderLeftAccessory={() => (
          <Image
            resizeMode="contain"
            source={combo_arrow_icon}
            style={{
              marginTop: 5,
              marginRight: 16,
            }}
          />
        )}
jallakalyan commented 4 years ago

renderAccessory is not working.... any solution. I have to show the arrow towards right in the dropdown. there is no arrow shown on the dropdown. please suggest. Thanks

iamir4g commented 4 years ago

renderAccessory is not working.... any solution. I have to show the arrow towards right in the dropdown. there is no arrow shown on the dropdown. please suggest. Thanks

hi I use this code : renderAccessory={() => ( <Image resizeMode="contain" source={combo_arrow_icon} style={{right: width * .78, marginRight: 16, }} /> )}