Skip to content

Commit

Permalink
test:修改react-native-zip-archive测试demo (#1423)
Browse files Browse the repository at this point in the history
  • Loading branch information
zy432099 authored Oct 28, 2024
1 parent da7356e commit e9e678c
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions react-native-zip-archive/ZipArchiveTest.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -256,19 +256,10 @@ const ZipArchiveDemoTest_ = () => {
style={{ borderWidth: 1, padding: 10, width: '70%' }}
/>
<TextInput
style={{
height: 100,
borderColor: 'gray',
borderWidth: 1,
width: 200,
padding: 10,
marginBottom: 10,
marginTop: 10
}}
onChangeText={text => setFileContent(text)}
style={styles.input}
onChangeText={setFileContent}
value={fileContent}
placeholder="文件内容"
multiline={true}
/>
<Button title="创建文件" onPress={() => { createFile(); setState('success'); }} />
</View>
Expand Down Expand Up @@ -325,7 +316,7 @@ const ZipArchiveDemoTest_ = () => {
<TextInput
style={styles.input}
placeholder="设置压缩密码"
onChangeText={text => setPassword(text)}
onChangeText={setPassword}
value={password}
/>
<View style={styles.buttonSix}>
Expand All @@ -351,7 +342,7 @@ const ZipArchiveDemoTest_ = () => {
<TextInput
style={styles.input}
placeholder="输入解压密码"
onChangeText={text => setUnzipPassword(text)}
onChangeText={setUnzipPassword}
/>
<View style={styles.buttonSix}>
<Button title="解压" onPress={() => { handleUnzipPress(); setState('success'); }} />
Expand Down

0 comments on commit e9e678c

Please sign in to comment.