Skip to content

Commit 3992b61

Browse files
authored
Merge pull request #3999 from jayhcrawford/patch-7
English clarity
2 parents 5f65467 + 89d3f1e commit 3992b61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/10/en/part10b.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -900,7 +900,7 @@ const MyComponent = Platform.select({
900900
<MyComponent />;
901901
```
902902
903-
However, a more sophisticated method for implementing and importing platform-specific components (or any other piece of code) is to use the <i>.ios.jsx</i> and <i>.android.jsx</i> file extensions. Note that the <i>.jsx</i> extension can as well be any extension recognized by the bundler, such as <i>.js</i>. We can for example have files <i>Button.ios.jsx</i> and <i>Button.android.jsx</i> which we can import like this:
903+
However, a more sophisticated method for implementing and importing platform-specific components (or any other piece of code) is to use the <i>.ios.jsx</i> and <i>.android.jsx</i> file extensions. Note that the <i>.jsx</i> extension could also be another extension recognized by the bundler, such as <i>.js</i>. We can for example have files <i>Button.ios.jsx</i> and <i>Button.android.jsx</i> which we can import like this:
904904
905905
```javascript
906906
import Button from './Button';

0 commit comments

Comments
 (0)