You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Initial value set to -1 on mount and then updated after async load of options and value. But even though I'm passing the "current" value as props, the initial value isn't updated.
exportinterfaceIRadioOption<T>{label: string;value: T;}interfaceIProps<Textendsstring|number>{value?: T;options: IRadioOption<T>[];onPress: (id?: T)=>void;}constRadioButtonGroup=<Textendsstring|number>({value, options, onPress}: IProps<T>)=>{return(<RadioFormradio_props={options}// @ts-ignore prop not declared on component but is usedselectedButtonColor={Colors['primary-600']}selectedButtonInnerColor={Colors['primary-600']}buttonColor={Colors['gray-300']}buttonSize={10}initial={value ? options.map(x=>x.value).indexOf(value) : -1}labelStyle={tw`text-gray-700 font-poppinsMedium`}onPress={(index: number)=>{onPress(options.find(x=>x.value===index)?.value);}}/>);};
No description provided.
The text was updated successfully, but these errors were encountered: