mirror of
https://github.com/zoriya/react-native-web.git
synced 2026-05-30 09:19:21 +00:00
Update prettier and reformat source code
This commit is contained in:
+87
-17
@@ -25,13 +25,31 @@ export default function SwitchPage() {
|
||||
<Divider />
|
||||
<Switch disabled={true} value={true} />
|
||||
<Divider />
|
||||
<Switch activeThumbColor="#fff" activeTrackColor="#E0245E" disabled={true} value={true} />
|
||||
<Switch
|
||||
activeThumbColor="#fff"
|
||||
activeTrackColor="#E0245E"
|
||||
disabled={true}
|
||||
value={true}
|
||||
/>
|
||||
<Divider />
|
||||
<Switch disabled={true} thumbColor="#fff" trackColor="#E0245E" value={false} />
|
||||
<Switch
|
||||
disabled={true}
|
||||
thumbColor="#fff"
|
||||
trackColor="#E0245E"
|
||||
value={false}
|
||||
/>
|
||||
<Divider />
|
||||
<Switch disabled={true} trackColor={{ true: '#E0245E', false: '#1DA1F2' }} value={false} />
|
||||
<Switch
|
||||
disabled={true}
|
||||
trackColor={{ true: '#E0245E', false: '#1DA1F2' }}
|
||||
value={false}
|
||||
/>
|
||||
<Divider />
|
||||
<Switch disabled={true} trackColor={{ true: '#E0245E', false: '#1DA1F2' }} value={true} />
|
||||
<Switch
|
||||
disabled={true}
|
||||
trackColor={{ true: '#E0245E', false: '#1DA1F2' }}
|
||||
value={true}
|
||||
/>
|
||||
</View>
|
||||
<View style={styles.row}>
|
||||
<Switch value={false} />
|
||||
@@ -39,30 +57,78 @@ export default function SwitchPage() {
|
||||
<Switch value={true} />
|
||||
</View>
|
||||
<View style={styles.row}>
|
||||
<Switch activeThumbColor="#1DA1F2" activeTrackColor="#ccc" value={true} />
|
||||
<Switch
|
||||
activeThumbColor="#1DA1F2"
|
||||
activeTrackColor="#ccc"
|
||||
value={true}
|
||||
/>
|
||||
<Divider />
|
||||
<Switch activeThumbColor="#17BF63" activeTrackColor="#ccc" value={true} />
|
||||
<Switch
|
||||
activeThumbColor="#17BF63"
|
||||
activeTrackColor="#ccc"
|
||||
value={true}
|
||||
/>
|
||||
<Divider />
|
||||
<Switch activeThumbColor="#FFAD1F" activeTrackColor="#ccc" value={true} />
|
||||
<Switch
|
||||
activeThumbColor="#FFAD1F"
|
||||
activeTrackColor="#ccc"
|
||||
value={true}
|
||||
/>
|
||||
<Divider />
|
||||
<Switch activeThumbColor="#F45D22" activeTrackColor="#ccc" value={true} />
|
||||
<Switch
|
||||
activeThumbColor="#F45D22"
|
||||
activeTrackColor="#ccc"
|
||||
value={true}
|
||||
/>
|
||||
<Divider />
|
||||
<Switch activeThumbColor="#794BC4" activeTrackColor="#ccc" value={true} />
|
||||
<Switch
|
||||
activeThumbColor="#794BC4"
|
||||
activeTrackColor="#ccc"
|
||||
value={true}
|
||||
/>
|
||||
<Divider />
|
||||
<Switch activeThumbColor="#E0245E" activeTrackColor="#ccc" value={true} />
|
||||
<Switch
|
||||
activeThumbColor="#E0245E"
|
||||
activeTrackColor="#ccc"
|
||||
value={true}
|
||||
/>
|
||||
</View>
|
||||
<View style={styles.row}>
|
||||
<Switch activeThumbColor="#fff" activeTrackColor="#1DA1F2" value={true} />
|
||||
<Switch
|
||||
activeThumbColor="#fff"
|
||||
activeTrackColor="#1DA1F2"
|
||||
value={true}
|
||||
/>
|
||||
<Divider />
|
||||
<Switch activeThumbColor="#fff" activeTrackColor="#17BF63" value={true} />
|
||||
<Switch
|
||||
activeThumbColor="#fff"
|
||||
activeTrackColor="#17BF63"
|
||||
value={true}
|
||||
/>
|
||||
<Divider />
|
||||
<Switch activeThumbColor="#fff" activeTrackColor="#FFAD1F" value={true} />
|
||||
<Switch
|
||||
activeThumbColor="#fff"
|
||||
activeTrackColor="#FFAD1F"
|
||||
value={true}
|
||||
/>
|
||||
<Divider />
|
||||
<Switch activeThumbColor="#fff" activeTrackColor="#F45D22" value={true} />
|
||||
<Switch
|
||||
activeThumbColor="#fff"
|
||||
activeTrackColor="#F45D22"
|
||||
value={true}
|
||||
/>
|
||||
<Divider />
|
||||
<Switch activeThumbColor="#fff" activeTrackColor="#794BC4" value={true} />
|
||||
<Switch
|
||||
activeThumbColor="#fff"
|
||||
activeTrackColor="#794BC4"
|
||||
value={true}
|
||||
/>
|
||||
<Divider />
|
||||
<Switch activeThumbColor="#fff" activeTrackColor="#E0245E" value={true} />
|
||||
<Switch
|
||||
activeThumbColor="#fff"
|
||||
activeTrackColor="#E0245E"
|
||||
value={true}
|
||||
/>
|
||||
</View>
|
||||
<View style={styles.row}>
|
||||
<Switch activeTrackColor="#ccc" thumbColor="#1DA1F2" value={false} />
|
||||
@@ -92,7 +158,11 @@ export default function SwitchPage() {
|
||||
</View>
|
||||
|
||||
<View style={styles.row}>
|
||||
<Switch style={{ height: 32, width: 32 }} thumbColor="#1DA1F2" value={checked} />
|
||||
<Switch
|
||||
style={{ height: 32, width: 32 }}
|
||||
thumbColor="#1DA1F2"
|
||||
value={checked}
|
||||
/>
|
||||
</View>
|
||||
</Example>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user