Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 20 additions & 6 deletions packages/rn-tester/js/examples/Playground/RNTesterPlayground.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,37 @@

import type {RNTesterModuleExample} from '../../types/RNTesterTypes';

import RNTesterText from '../../components/RNTesterText';
import * as React from 'react';
import {StyleSheet, View} from 'react-native';
import {StyleSheet, Text, View} from 'react-native';

function Playground() {
return (
<View style={styles.container}>
<RNTesterText>
Edit "RNTesterPlayground.js" to change this file
</RNTesterText>
<Text numberOfLines={1} style={styles.text}>
Cut inside the text, which is too long for one line
</Text>
<Text numberOfLines={1} style={styles.text}>
Cut at a view <View style={styles.view} /> and more text
</Text>
</View>
);
}

const styles = StyleSheet.create({
container: {
padding: 10,
padding: 24,
gap: 16,
backgroundColor: '#3b4a5a',
},
text: {
width: 200,
fontSize: 24,
color: 'white',
},
view: {
width: 120,
height: 12,
backgroundColor: 'tomato',
},
});

Expand Down
Loading