Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F32374680
D7968.1765327765.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D7968.1765327765.diff
View Options
diff --git a/native/community-creation/community-configuration.react.js b/native/community-creation/community-configuration.react.js
--- a/native/community-creation/community-configuration.react.js
+++ b/native/community-creation/community-configuration.react.js
@@ -1,7 +1,7 @@
// @flow
import * as React from 'react';
-import { Text, View } from 'react-native';
+import { Text, TouchableOpacity, View } from 'react-native';
import type { CommunityCreationNavigationProp } from './community-creation-navigator.react.js';
import RegistrationContainer from '../account/registration/registration-container.react.js';
@@ -34,6 +34,16 @@
);
const [pendingCommunityName, setPendingCommunityName] = React.useState('');
+ const [announcementSetting, setAnnouncementSetting] = React.useState(false);
+
+ const onCheckBoxPress = React.useCallback(() => {
+ setAnnouncementSetting(!announcementSetting);
+ }, [announcementSetting]);
+
+ let checkBoxFill;
+ if (announcementSetting) {
+ checkBoxFill = <View style={styles.enumCheckBoxFill} />;
+ }
return (
<RegistrationContainer>
@@ -79,9 +89,13 @@
community.
</Text>
</View>
- <View style={styles.enumCheckBoxContainer}>
- <View style={styles.enumCheckBox}></View>
- </View>
+ <TouchableOpacity
+ onPress={onCheckBoxPress}
+ style={styles.enumCheckBoxContainer}
+ activeOpacity={0.4}
+ >
+ <View style={styles.enumCheckBox}>{checkBoxFill}</View>
+ </TouchableOpacity>
</View>
<ThreadSettingsCategoryFooter type="full" />
</RegistrationContentContainer>
@@ -171,6 +185,14 @@
borderRadius: 3.5,
borderWidth: 1,
borderColor: 'panelSecondaryForegroundBorder',
+ justifyContent: 'center',
+ alignItems: 'center',
+ },
+ enumCheckBoxFill: {
+ height: 20,
+ width: 20,
+ borderRadius: 2.1875,
+ backgroundColor: 'panelForegroundSecondaryLabel',
},
};
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Dec 10, 12:49 AM (19 h, 4 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5858306
Default Alt Text
D7968.1765327765.diff (1 KB)
Attached To
Mode
D7968: [native] Make `enumCheckBox` functional in `CommunityConfiguration`
Attached
Detach File
Event Timeline
Log In to Comment