<Text style={styles.disclaimer}>
Disclaimer: This form is intended to facilitate open communication and mutual understanding between consenting adults engaging in sexual activities. It is not a legally binding document and should not replace ongoing verbal consent. Please consult a legal professional to understand the legal standing of such agreements in your jurisdiction.
</Text>
<Text style={styles.sectionTitle}>Introduction</Text>
<Text style={styles.paragraph}>
This agreement is entered into by the undersigned parties to clearly communicate mutual understanding and consent regarding specific sexual activities. The purpose of this agreement is to foster respect, open communication, and a safe, consensual environment for all involved.
</Text>
<Text style={styles.sectionTitle}>Parties Involved</Text>
<Text style={styles.label}>Person 1:</Text>
<TextInput
style={styles.input}
placeholder="Name"
value={textInputs.person1Name}
onChangeText={(text) => setTextInput('person1Name', text)}
/>
<TextInput
style={styles.input}
placeholder="Age"
value={textInputs.person1Age}
onChangeText={(text) => setTextInput('person1Age', text)}
/>
<TextInput
style={styles.input}
placeholder="Contact Information"
value={textInputs.person1Contact}
onChangeText={(text) => setTextInput('person1Contact', text)}
/>
<View style={styles.checkboxContainer}>
<Checkbox
value={checkboxes.person1IdVerified}
onValueChange={() => toggleCheckbox('person1IdVerified')}
color={checkboxes.person1IdVerified ? '#4630EB' : undefined}
/>
<Text style={styles.label}>Identification Verified</Text>
</View>
<Text style={styles.label}>Person 2:</Text>
<TextInput
style={styles.input}
placeholder="Name"
value={textInputs.person2Name}
onChangeText={(text) => setTextInput('person2Name', text)}
/>
<TextInput
style={styles.input}
placeholder="Age"
value={textInputs.person2Age}
onChangeText={(text) => setTextInput('person2Age', text)}
/>
<TextInput
style={styles.input}
placeholder="Contact Information"
value={textInputs.person2Contact}
onChangeText={(text) => setTextInput('person2Contact', text)}
/>
<View style={styles.checkboxContainer}>
<Checkbox
value={checkboxes.person2IdVerified}
onValueChange={() => toggleCheckbox('person2IdVerified')}
color={checkboxes.person2IdVerified ? '#4630EB' : undefined}
/>
<Text style={styles.label}>Identification Verified</Text>
</View>
<Text style={styles.paragraph}>
If more than two parties are involved, please attach additional pages with their information.
</Text>
<Text style={styles.sectionTitle}>Acknowledgments</Text>
<Text style={styles.paragraph}>
By signing this agreement, both parties acknowledge that they:
</Text>
<Text style={styles.bulletPoint}>
• Are above the legal age of consent in the jurisdiction where this agreement is being made and have verified each other's identification.
</Text>
<Text style={styles.bulletPoint}>
• Are fully aware of and understand the nature of the sexual activities being discussed.
</Text>
<Text style={styles.bulletPoint}>
• Are entering into this agreement voluntarily, without coercion, pressure, or undue influence.
</Text>
<Text style={styles.bulletPoint}>
• Have the mental and emotional capacity to make informed decisions.
</Text>
<Text style={styles.bulletPoint}>
• Are not under the influence of drugs or alcohol that could impair their judgment at the time of signing.
</Text>
<Text style={styles.bulletPoint}>
• Understand that consent is a continuous process and can be withdrawn at any point before or during the sexual activity.
</Text>
<Text style={styles.bulletPoint}>
• Recognize that this agreement does not waive the right to withdraw consent at any time.
</Text>
<Text style={styles.sectionTitle}>Consent to Specific Activities</Text>
<Text style={styles.paragraph}>Both parties agree to engage in the following activities (check all that apply):</Text>
<View style={styles.checkboxContainer}>
<Checkbox
value={checkboxes.kissing}
onValueChange={() => toggleCheckbox('kissing')}
color={checkboxes.kissing ? '#4630EB' : undefined}
/>
<Text style={styles.label}>Kissing</Text>
</View>
<View style={styles.checkboxContainer}>
<Checkbox
value={checkboxes.sexualTouching}
onValueChange={() => toggleCheckbox('sexualTouching')}
color={checkboxes.sexualTouching ? '#4630EB' : undefined}
/>
<Text style={styles.label}>Sexual touching (manual stimulation)</Text>
</View>
<View style={styles.checkboxContainer}>
<Checkbox
value={checkboxes.oralSex}
onValueChange={() => toggleCheckbox('oralSex')}
color={checkboxes.oralSex ? '#4630EB' : undefined}
/>
<Text style={styles.label}>Oral sex</Text>
</View>
<View style={styles.checkboxContainer}>
<Checkbox
value={checkboxes.vaginalIntercourse}
onValueChange={() => toggleCheckbox('vaginalIntercourse')}
color={checkboxes.vaginalIntercourse ? '#4630EB' : undefined}
/>
<Text style={styles.label}>Vaginal intercourse</Text>
</View>
<View style={styles.checkboxContainer}>
<Checkbox
value={checkboxes.analIntercourse}
onValueChange={() => toggleCheckbox('analIntercourse')}
color={checkboxes.analIntercourse ? '#4630EB' : undefined}
/>
<Text style={styles.label}>Anal intercourse</Text>
</View>
<View style={styles.checkboxContainer}>
<Checkbox
value={checkboxes.useOfSexualDevices}
onValueChange={() => toggleCheckbox('useOfSexualDevices')}
color={checkboxes.useOfSexualDevices ? '#4630EB' : undefined}
/>
<Text style={styles.label}>Use of sexual devices</Text>
</View>
<TextInput
style={styles.input}
placeholder="Specify sexual devices"
value={textInputs.sexualDevicesSpecify}
onChangeText={(text) => setTextInput('sexualDevicesSpecify', text)}
/>
<View style={styles.checkboxContainer}>
<Checkbox
value={checkboxes.other}
onValueChange={() => toggleCheckbox('other')}
color={checkboxes.other ? '#4630EB' : undefined}
/>
<Text style={styles.label}>Other</Text>
</View>
<TextInput
style={styles.input}
placeholder="Specify other activities"
value={textInputs.otherActivitiesSpecify}
onChangeText={(text) => setTextInput('otherActivitiesSpecify', text)}
/>
<Text style={styles.sectionTitle}>Definitions</Text>
<Text style={styles.paragraph}>
Kissing: Oral contact with another person's lips or body.{'\n'}
Sexual touching: Physical contact with another person's intimate areas (e.g., genitals, buttocks, breasts) for sexual arousal or gratification.{'\n'}
Oral sex: Oral stimulation of another person's genitalia.{'\n'}
Vaginal intercourse: Penetration of the vagina by the penis or a sexual device.{'\n'}
Anal intercourse: Penetration of the anus by the penis, fingers, or a sexual device.{'\n'}
Use of sexual devices: Incorporation of sex toys or props into sexual activities as specified.{'\n'}
Other: Any additional activities specified by the participants.
</Text>
<Text style={styles.sectionTitle}>Terms and Conditions</Text>
<Text style={styles.label}>Continuous Consent:</Text>
<Text style={styles.paragraph}>
Both parties understand that consent is an ongoing process and can be withdrawn at any time before or during the sexual activity.{'\n'}
Any indication of withdrawal of consent, whether verbal or non-verbal, must be respected immediately, and all activities must cease.
</Text>
<Text style={styles.label}>Communication:</Text>
<Text style={styles.paragraph}>
Both parties agree to communicate openly and respectfully about boundaries, comfort levels, and any changes in consent during the activity.{'\n'}
Safe words or signals will be used to ensure clear communication.
</Text>
<Text style={styles.label}>Safe Word/Signal:</Text>
<TextInput
style={styles.input}
placeholder="Enter safe word or signal"
value={textInputs.safeWordSignal}
onChangeText={(text) => setTextInput('safeWordSignal', text)}
/>
<Text style={styles.paragraph}>
This word or signal will be used to indicate an immediate halt to all activities.
</Text>
<Text style={styles.label}>Contraception and Protection:</Text>
<TextInput
style={styles.input}
placeholder="Specify contraception methods"
value={textInputs.contraceptionMethods}
onChangeText={(text) => setTextInput('contraceptionMethods', text)}
/>
<Text style={styles.paragraph}>
Both parties commit to discussing any changes in contraception or protection methods.
</Text>
<Text style={styles.label}>Sexually Transmitted Infections (STIs):</Text>
<Text style={styles.paragraph}>
Both parties confirm that they have disclosed any known STIs to each other.{'\n'}
Both parties agree to inform the other if they become aware of any changes to their STI status.
</Text>
<Text style={styles.label}>Recent STI Testing:</Text>
<TextInput
style={styles.input}
placeholder="Person 1 Last Tested On"
value={textInputs.person1LastTested}
onChangeText={(text) => setTextInput('person1LastTested', text)}
/>
<TextInput
style={styles.input}
placeholder="Person 2 Last Tested On"
value={textInputs.person2LastTested}
onChangeText={(text) => setTextInput('person2LastTested', text)}
/>
<Text style={styles.label}>Health and Safety Plan:</Text>
<TextInput
style={styles.input}
placeholder="Specify health and safety plan"
value={textInputs.healthSafetyPlan}
onChangeText={(text) => setTextInput('healthSafetyPlan', text)}
/>
<Text style={styles.label}>Limits and Boundaries:</Text>
<Text style={styles.paragraph}>
Both parties have discussed and agreed upon personal limits and hard boundaries.
</Text>
<TextInput
style={styles.input}
placeholder="Specify activities or areas to avoid"
value={textInputs.activitiesToAvoid}
onChangeText={(text) => setTextInput('activitiesToAvoid', text)}
/>
<Text style={styles.label}>Aftercare:</Text>
<Text style={styles.paragraph}>
The parties agree to provide appropriate aftercare following the activities, addressing emotional and physical well-being.
</Text>
<TextInput
style={styles.input}
placeholder="Specify aftercare preferences"
value={textInputs.aftercarePreferences}
onChangeText={(text) => setTextInput('aftercarePreferences', text)}
/>
<Text style={styles.label}>Privacy and Confidentiality:</Text>
<Text style={styles.paragraph}>
Both parties agree to keep the details of this agreement and the activities confidential unless required by law to disclose.
</Text>
<Text style={styles.label}>Storage of Agreement:</Text>
<Text style={styles.paragraph}>
The agreement will be stored in a secure location accessible to both parties.
</Text>
<Text style={styles.sectionTitle}>Signatures</Text>
<Text style={styles.paragraph}>
By signing this form, both parties affirm that they have read and fully understand this agreement, and that all information provided is accurate and truthful. They also acknowledge that this agreement does not replace the need for ongoing, enthusiastic consent.
</Text>
<SignatureField person="person1" label="Person 1:" />
<SignatureField person="person2" label="Person 2:" />
<SignatureField person="witness" label="Witness (Optional):" />
<TextInput
style={styles.input}
placeholder="Witness Name (Print)"
value={textInputs.witnessName}
onChangeText={(text) => setTextInput('witnessName', text)}
/>
{/* Signature Modal */}
<Modal
visible={signatureModalVisible}
transparent={true}
animationType="slide"
>
<View style={styles.modalContainer}>
<View style={styles.modalContent}>
<SignatureScreen
ref={signatureRef}
onOK={handleSignature}
onEmpty={() => console.log("No signature")}
descriptionText="Sign here"
webStyle={`
.m-signature-pad--footer {
display: none;
}
body,html {
height: 100%;
width: 100%;
margin: 0;
padding: 0;
}
`}
/>
<View style={styles.buttonContainer}>
<TouchableOpacity
style={styles.button}
onPress={handleClear}
>
<Text style={styles.buttonText}>Clear</Text>
</TouchableOpacity>
<TouchableOpacity
style={styles.button}
onPress={handleSave}
>
<Text style={styles.buttonText}>Save</Text>
</TouchableOpacity>
<TouchableOpacity
style={[styles.button, styles.cancelButton]}
onPress={() => setSignatureModalVisible(false)}
>
<Text style={styles.buttonText}>Cancel</Text>
</TouchableOpacity>
</View>
</View>
</View>
</Modal>
</ScrollView>
export default LegalText;
keep the layout the same, but make it so the user can click on the text beside the checkbox and it will also check the box
To enhance the user experience by allowing users to toggle the checkbox by clicking on the accompanying text, you can modify each checkbox section to make the entire area (both the checkbox and the text) clickable. This can be achieved by wrapping the checkbox and the text within a TouchableOpacity (or Pressable) component and handling the onPress event to toggle the checkbox state.
Here's how you can implement this:
Create a Reusable Component (Optional but Recommended):
To keep your code clean and maintainable, it's advisable to create a reusable CheckboxWithLabel component. This component will encapsulate the checkbox and its label, handling the toggle functionality internally.
Alternative: Modify Each Checkbox Section Directly Without a Reusable Component
If you prefer not to create a separate component, you can directly modify each checkbox section within the LegalText component by wrapping the Checkbox and Text components inside a TouchableOpacity. Here's how you can do it:
jsx
// Inside components/LegalText.js
// Replace each checkbox section like this:
<TouchableOpacity
style={styles.checkboxContainer}
onPress={() => toggleCheckbox('kissing')}
>
<Checkbox
value={checkboxes.kissing}
onValueChange={() => toggleCheckbox('kissing')}
color={checkboxes.kissing ? '#4630EB' : undefined}
/>
<Text style={styles.label}>Kissing</Text>
</TouchableOpacity>
// Repeat for each checkbox, updating the label and toggle function accordingly.
Final Updated Styles (If Using the Reusable Component):
Ensure that the checkboxContainer style in your LegalText component does not conflict with the styles in the CheckboxWithLabel component. You might need to adjust margins or padding as necessary.
Improved User Experience: Users can check or uncheck a box by tapping anywhere on the checkbox area, including the label text.
Cleaner Code: Using a reusable component reduces repetition and makes the codebase easier to maintain.
Flexibility: You can further customize the CheckboxWithLabel component (e.g., adding icons, different styles) without modifying every checkbox instance.
Complete Example:
Here's a simplified version of how the updated LegalText component might look with the CheckboxWithLabel component integrated:
jsx
Final Touches:
Accessibility Enhancements: Consider adding accessibility labels and roles to improve usability for users with assistive technologies.
Testing: After implementing the changes, thoroughly test each checkbox to ensure that both the checkbox and its label are responsive to clicks and correctly toggle the state.
By following the above steps, you can ensure that users have a seamless experience when interacting with the checkboxes in your form, allowing them to click either the checkbox or the accompanying text to toggle the selection.