Question · React Native course · Module 2: Lists and styles

.ios.tsx and .android.tsx Files

How does React Native handle files with the .ios.tsx and .android.tsx extensions?

Answer options

  • Ignores them
  • Automatically selects the appropriate file for the platform
  • Merges both files into one
  • Requires manual import
Show the answer

Correct answer:

  • Automatically selects the appropriate file for the platform