1. Junior

    What are the main differences between browser CSS and the styling system in React Native?

    React Native has no traditional CSS files. Properties use camelCase in JavaScript objects; only Flexbox is supported, without Grid or float; the default flexDirection is column; and dimensions are unitless (density-independent pixels).

    Read the full explanation
  2. Junior

    Why is StyleSheet.create preferred over direct inline styles?

    It validates style names and values at creation time, provides type safety in TypeScript, and sends styles once through native memory to associate them with stable numeric IDs instead of creating new objects on every render.

    Read the full explanation
  3. Mid-level

    How do you build responsive layouts for phones and tablets of different sizes?

    Use useWindowDimensions to track size and orientation changes, together with percentage-based Flexbox and helper libraries for proportional scaling.

    Read the full explanation
  4. Mid-level

    How are shadows and elevation handled across iOS and Android?

    iOS uses shadowColor, shadowOffset, shadowOpacity, and shadowRadius, while Android uses a single built-in elevation property that represents an element's height above the background.

    Read the full explanation
  5. Mid-level

    How do you support and customize custom fonts and handle height and line-height issues?

    Add the font files (TTF/OTF), link them through Expo Font or the assets directory in a bare build, use the correct fontFamily name, and set lineHeight to accommodate system text scaling.

    Read the full explanation
  6. Senior

    How do you support right-to-left (RTL) writing and layout interfaces for Arabic?

    Use the I18nManager module and direction-neutral Flexbox properties such as marginStart, marginEnd, paddingStart, and paddingEnd instead of left and right.

    Read the full explanation
  7. Mid-level

    What is NativeWind, and how does it let developers use Tailwind CSS in React Native?

    It translates Tailwind CSS classes into React Native-compatible StyleSheet objects at build time, enabling standard, concise className usage.

    Read the full explanation
  8. Junior

    How do you smoothly manage dark and light mode using useColorScheme?

    Use the useColorScheme hook to listen to the device operating system's theme and connect it to a dynamic color object or Theme Provider to update screen colors immediately.

    Read the full explanation
  9. Junior

    What is the difference between position: "relative" and position: "absolute" in React Native layout?

    Relative elements remain in the normal Flexbox flow and move relative to their original position, while absolute elements are completely removed from the layout flow and positioned relative to the nearest parent container.

    Read the full explanation
  10. Junior

    What are the benefits and uses of the AspectRatio property for flexible cards and images?

    aspectRatio automatically controls the width-to-height ratio of any visible element (such as 16/9 or 1/1), allowing its height to adapt precisely when the screen width changes.

    Read the full explanation