diff --git a/packages/rn-tester/js/examples/RTL/RTLExample.js b/packages/rn-tester/js/examples/RTL/RTLExample.js
index 962cef224d7306..702b489989d96a 100644
--- a/packages/rn-tester/js/examples/RTL/RTLExample.js
+++ b/packages/rn-tester/js/examples/RTL/RTLExample.js
@@ -10,8 +10,9 @@
'use strict';
-const React = require('react');
-const {
+import RNTexterText from '../../components/RNTesterText';
+import React from 'react';
+import {
Alert,
Animated,
Button,
@@ -25,7 +26,7 @@ const {
TextInput,
TouchableWithoutFeedback,
View,
-} = require('react-native');
+} from 'react-native';
type RTLToggleState = {isRTL: boolean, ...};
@@ -50,7 +51,7 @@ function ListItem(props: {imageSource: number}) {
- Text Text Text
+ Text Text Text
@@ -67,20 +68,20 @@ const TextAlignmentExample = withRTLState(({isRTL, setRTL, ...props}) => {
-
+
Left-to-Right language without text alignment.
-
-
+
+
{'\u0645\u0646 \u0627\u0644\u064A\u0645\u064A\u0646 ' +
'\u0625\u0644\u0649 \u0627\u0644\u064A\u0633\u0627\u0631 ' +
'\u0627\u0644\u0644\u063A\u0629 \u062F\u0648\u0646 ' +
'\u0645\u062D\u0627\u0630\u0627\u0629 \u0627\u0644\u0646\u0635'}
-
-
+
+
{'\u05DE\u05D9\u05DE\u05D9\u05DF \u05DC\u05E9\u05DE\u05D0\u05DC ' +
'\u05D4\u05E9\u05E4\u05D4 \u05D1\u05DC\u05D9 ' +
'\u05D9\u05D9\u05E9\u05D5\u05E8 \u05D8\u05E7\u05E1\u05D8'}
-
+
);
@@ -91,7 +92,7 @@ const TextInputExample = withRTLState(({isRTL, setRTL, ...props}) => {
- LRT or RTL TextInput.
+ LRT or RTL TextInput.
@@ -108,18 +109,18 @@ const IconsExample = withRTLState(({isRTL, setRTL}) => {
source={require('../../assets/like.png')}
style={styles.image}
/>
-
+
Without directional meaning
-
+
-
+
With directional meaning
-
+
@@ -215,7 +216,7 @@ class RTLToggleExample extends React.Component {
- forceRTL
+ forceRTL
{
return (
- Styles
- paddingStart: 50,
- paddingEnd: 10
+ Styles
+ paddingStart: 50,
+ paddingEnd: 10
- Demo:
- The {color} is padding.
+ Demo:
+ The {color} is padding.
{
const MarginExample = withRTLState(({isRTL, setRTL}) => {
return (
- Styles
- marginStart: 50,
- marginEnd: 10
+ Styles
+ marginStart: 50,
+ marginEnd: 10
- Demo:
- The green is margin.
+ Demo:
+ The green is margin.
{
const PositionExample = withRTLState(({isRTL, setRTL}) => {
return (
- Styles
- start: 50
+ Styles
+ start: 50
- Demo:
- The orange is position.
+ Demo:
+ The orange is position.
{
- Styles
- end: 50
+ Styles
+ end: 50
- Demo:
- The orange is position.
+ Demo:
+ The orange is position.
{
const BorderWidthExample = withRTLState(({isRTL, setRTL}) => {
return (
- Styles
- borderStartWidth: 10,
- borderEndWidth: 50
+ Styles
+ borderStartWidth: 10,
+ borderEndWidth: 50
- Demo:
+ Demo:
{
const BorderColorExample = withRTLState(({isRTL, setRTL}) => {
return (
- Styles
- borderStartColor: 'red',
- borderEndColor: 'green',
+ Styles
+ borderStartColor: 'red',
+ borderEndColor: 'green',
- Demo:
+ Demo:
{
const BorderRadiiExample = withRTLState(({isRTL, setRTL}) => {
return (
- Styles
- borderTopStartRadius: 10,
- borderTopEndRadius: 20,
- borderBottomStartRadius: 30,
- borderBottomEndRadius: 40
+ Styles
+ borderTopStartRadius: 10,
+ borderTopEndRadius: 20,
+ borderBottomStartRadius: 30,
+ borderBottomEndRadius: 40
- Demo:
+ Demo:
{
const LogicalBorderRadiiExample = withRTLState(({isRTL, setRTL}) => {
return (
- Styles
- borderStartStartRadius: 10,
- borderStartEndRadius: 20,
- borderEndStartRadius: 30,
- borderEndEndRadius: 40
+ Styles
+ borderStartStartRadius: 10,
+ borderStartEndRadius: 20,
+ borderEndStartRadius: 30,
+ borderEndEndRadius: 40
- Demo:
+ Demo:
{
const BorderExample = withRTLState(({isRTL, setRTL}) => {
return (
- Styles
- borderStartColor: 'red',
- borderEndColor: 'green',
- borderStartWidth: 10,
- borderEndWidth: 50,
- borderTopStartRadius: 10,
- borderTopEndRadius: 20,
- borderBottomStartRadius: 30,
- borderBottomEndRadius: 40
+ Styles
+ borderStartColor: 'red',
+ borderEndColor: 'green',
+ borderStartWidth: 10,
+ borderEndWidth: 50,
+ borderTopStartRadius: 10,
+ borderTopEndRadius: 20,
+ borderBottomStartRadius: 30,
+ borderBottomEndRadius: 40
- Demo:
+ Demo: