Skip to content

Commit 7184885

Browse files
committed
update Sample project
1 parent a809294 commit 7184885

File tree

1 file changed

+29
-27
lines changed

1 file changed

+29
-27
lines changed

Sample/App.tsx

Lines changed: 29 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ class App extends Component<any, StateType> {
126126
borderWidth: 1,
127127
borderRadius: 2,
128128
paddingLeft: 5,
129-
maxHeight: 300,
129+
maxHeight: 300, // maxHeight is recommended to multiline
130130
}}
131131
ref={ref}
132132
value={this.state.inputsValues[ref] || ''}
@@ -157,32 +157,34 @@ class App extends Component<any, StateType> {
157157
<View style={{flex: 1}}>
158158
<SafeAreaView style={{flex: 1}}>
159159
{/* To try with Modal, uncomment the two following lines. */}
160-
<Modal visible={true}>
161-
<PreviousNextView style={{flex: 1}}>
162-
{/* ScrollView is not required, but may be needed in some cases. */}
163-
<ScrollView>
164-
<View style={{alignItems: 'center'}}>
165-
<Text style={{marginTop: 10, textAlign: 'center'}}>
166-
React-Native Keyboard Manager
167-
</Text>
168-
<View
169-
style={{
170-
marginTop: 10,
171-
flexDirection: 'row',
172-
alignItems: 'center',
173-
}}>
174-
<Text>Enable/Disable </Text>
175-
<Switch
176-
onValueChange={this.onEnableDisable}
177-
value={this.state.enableDisable}
178-
/>
179-
</View>
180-
</View>
181-
182-
<View>{INPUT_KEYS.map(this.renderInput)}</View>
183-
</ScrollView>
184-
</PreviousNextView>
185-
</Modal>
160+
{/* <Modal visible={true}> */}
161+
{/* <PreviousNextView style={{flex: 1}}> */}
162+
163+
{/* ScrollView is not required, but may be needed in some cases. */}
164+
<ScrollView>
165+
<View style={{alignItems: 'center'}}>
166+
<Text style={{marginTop: 10, textAlign: 'center'}}>
167+
React-Native Keyboard Manager
168+
</Text>
169+
<View
170+
style={{
171+
marginTop: 10,
172+
flexDirection: 'row',
173+
alignItems: 'center',
174+
}}>
175+
<Text>Enable/Disable </Text>
176+
<Switch
177+
onValueChange={this.onEnableDisable}
178+
value={this.state.enableDisable}
179+
/>
180+
</View>
181+
</View>
182+
183+
<View>{INPUT_KEYS.map(this.renderInput)}</View>
184+
</ScrollView>
185+
186+
{/* </PreviousNextView> */}
187+
{/* </Modal> */}
186188
</SafeAreaView>
187189
</View>
188190
);

0 commit comments

Comments
 (0)