itskarelleh / taino-language-app

A progressive web app to help with the revitalization of the Taino language and culture
https://taino-language-app.netlify.app
3 stars 0 forks source link

Make the multiple choice pressable a component #26

Closed itskarelleh closed 3 weeks ago

itskarelleh commented 3 weeks ago

Turn this into a reusable component.

The following should be done to complete this issue:

Example:

Screenshot 2024-10-21 at 12 20 28 PM

Currently:

<Pressable
    key={index}
    style={[
    styles.radioButton,
        selectedOption === index && styles.radioButtonSelected
     ]}
     onPress={() => handleOptionSelect(index)}>
        <Text style={[
              styles.radioButtonText,
              selectedOption === index && styles.radioButtonTextSelected
        ]}>
       {option}
     </Text>
</Pressable>

Desired Outcome

<MultipleChoiceOption option={option} />
itskarelleh commented 3 weeks ago

Issue solved with #33. Closing this issue.