Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Jul 27, 2021. It is now read-only.

Commit fac3d13

Browse files
author
baijunjie
committed
update
1 parent 5b3cdbf commit fac3d13

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

‎__test__/App.js‎

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,17 @@
66
* @flow
77
*/
88

9-
import React, {Component} from 'react';
9+
import React, {Component} from 'react';
1010
import {StyleSheet, TextInput, View, Text} from 'react-native';
1111
import InputScrollView from './react-native-input-scroll-view';
1212

13-
type Props = {};
14-
export default class App extends Component<Props> {
13+
const MyComponent = props => (
14+
<View>
15+
<TextInput {...props} />
16+
</View>
17+
)
18+
19+
export default class App extends Component {
1520
state = {
1621
text: '',
1722
textarea: '',
@@ -24,7 +29,7 @@ export default class App extends Component<Props> {
2429
<InputScrollView>
2530
<View style={styles.placeholder} />
2631
<TextInput style={styles.input} value={text} />
27-
<TextInput style={styles.textarea}
32+
<MyComponent style={styles.textarea}
2833
value={textarea}
2934
onChangeText={text => this.setState({ textarea: text })}
3035
multiline />

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /