Skip to content

Commit b7ebb69

Browse files
Example page minor fixes and ignore warnings (#233)
Co-authored-by: Ankit Tiwari <ankitt255@gmail.com>
1 parent 69f2560 commit b7ebb69

File tree

5 files changed

+17
-3
lines changed

5 files changed

+17
-3
lines changed

packages/rn-tester/js/RNTesterApp.android.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ const {
2727
UIManager,
2828
useColorScheme,
2929
View,
30+
LogBox,
3031
} = require('react-native');
3132

3233
import type {RNTesterExample} from './types/RNTesterTypes';
@@ -148,6 +149,12 @@ const RNTesterExampleListViaHook = ({
148149
class RNTesterApp extends React.Component<Props, RNTesterNavigationState> {
149150
constructor() {
150151
super();
152+
153+
// RNTester App currently uses Async Storage from react-native for storing navigation state
154+
// and bookmark items.
155+
// TODO: Add Native Async Storage Module in RNTester
156+
LogBox.ignoreLogs([new RegExp('has been extracted from react-native')]);
157+
151158
this.state = {
152159
openExample: null,
153160
Components: bookmarks.Components,

packages/rn-tester/js/RNTesterApp.ios.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ const {
3030
Text,
3131
useColorScheme,
3232
View,
33+
LogBox,
3334
} = require('react-native');
3435

3536
import type {RNTesterExample} from './types/RNTesterTypes';
@@ -184,6 +185,12 @@ class RNTesterApp extends React.Component<Props, RNTesterNavigationState> {
184185

185186
constructor() {
186187
super();
188+
189+
// RNTester App currently uses Async Storage from react-native for storing navigation state
190+
// and bookmark items.
191+
// TODO: Add Native Async Storage Module in RNTester
192+
LogBox.ignoreLogs([new RegExp('has been extracted from react-native')]);
193+
187194
this.state = {
188195
openExample: null,
189196
screen: 'component',

packages/rn-tester/js/components/ExamplePage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export default function ExamplePage(props: Props): React.Node {
3636
return (
3737
<>
3838
<View style={styles.titleView}>
39-
<Text style={{marginVertical: 8}}>{description}</Text>
39+
<Text style={{marginVertical: 8, fontSize: 16}}>{description}</Text>
4040
<View style={styles.rowStyle}>
4141
<Text style={{color: theme.SecondaryLabelColor, width: 65}}>
4242
{category || 'Other'}

packages/rn-tester/js/components/RNTesterBlock.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const styles = StyleSheet.create({
4141
container: {
4242
borderRadius: 0,
4343
borderWidth: 1,
44-
marginVertical: 15,
44+
marginTop: 30,
4545
marginHorizontal: 20,
4646
backgroundColor: 'white',
4747
},

packages/rn-tester/js/components/RNTesterExampleFilter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ class RNTesterExampleFilter extends React.Component<Props, State> {
8989
* This is a fake list item. It is needed to provide the ScrollView some bottom padding.
9090
* The height of this item is basically ScreenHeight - the height of (Header + bottom navbar)
9191
* */}
92-
<View style={{height: 320}} />
92+
<View style={{height: 350}} />
9393
</ScrollView>
9494
);
9595
} else {

0 commit comments

Comments
 (0)