Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

227
Views
React native nativebase checkbox: Text inside a checkbox going out of the screen

I cant make it work, text inside a checkbox (nativebase) is not shrinking, does anyone knows why? Am i missing some flex properties?

import React from "react"
import {Box, Center, Checkbox, Heading, NativeBaseProvider, Text} from "native-base"

export const List = () => {
    return (
        <Box mb="10%" mt="30%" width="80%" height="80%" maxHeight="80%">
            <Checkbox value={"superlongipermegatest"}>
                <Text mx="2">
                    superlongipermegatest
                </Text>
            </Checkbox>
        </Box>
    )
}

export default () => {
    return (
        <NativeBaseProvider>
            <Center
                flex={1}
                px="1">
                <List/>
            </Center>
        </NativeBaseProvider>
    )
}

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Wrap your Checkbox in a Box: <Box width="100%"> this will restrict the contents to its parents and wrap the text.

<Box mb="10%" mt="30%" width="80%" height="80%" maxHeight="80%">
    <Box width="100%">
        <Checkbox value={"superlongipermegatest"}>
            <Text mx="2">
                superlongipermegatest
            </Text>
        </Checkbox>
    </Box>
</Box>
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!