Comments (7)
I want to develop this task.
Can you assign it to me?
from dooboo-ui.
I want to develop this task.
Can you assign it to me?
Thanks for your interest~! I've just assigned you here.
Actually, you can start working on this even if you are not assigned. In the future, you can just tell us that you are working on it if you want to share your progress.
@yujong-lee Thanks for sharing the spec. This looks really useful!
from dooboo-ui.
@doreen0224 Great! 👍
There's few things I want to point out.
All component in dooboo-ui
should follow this rule for styling.
Never make style props as another props.
So we need style
for referring itself, and styles
for wrapping things like modalStyle
.
#69 is my work related to this.
See this comment by @hyochan.
Code below is Button
's prop written by @hyochan .
type Styles = {
container?: StyleProp<ViewStyle>;
text?: StyleProp<TextStyle>;
disabledButton?: StyleProp<ViewStyle>;
disabledText?: StyleProp<TextStyle>;
hovered?: StyleProp<ViewStyle>;
};
export interface ButtonProps {
testID?: string;
indicatorColor?: string;
loading?: boolean;
disabled?: boolean;
outlined?: boolean;
style?: StyleProp<ViewStyle>;
styles?: Styles;
leftElement?: ReactElement;
rightElement?: ReactElement;
activeOpacity?: TouchableOpacityProps['activeOpacity'];
text?: string;
onPress?: TouchableOpacityProps['onPress'];
touchableOpacityProps?: Partial<TouchableOpacityProps>;
textProps?: Partial<TextProps>;
type?: ButtonType;
size?: ButtonSize;
}
from dooboo-ui.
@do02reen24
Looking forward to your work!
I'm sure you know better than me, but I'll share some source just in case it helps.
- Reading this will be helpful.
- If you're going to implement in
@dooboo-ui/alert-dialog
, you can start withlerna create alert-dialog
andlerna add react-native-modalbox --scope=alert-dialog
. - There are two ways to manage open state of modal in
react-native-modalbox
.
opened
props. (recommended)open/close
method
You won't need second way, but just in case you want it, here's some code example. (there's no example of this in docs)
export default function AlertDialog(props: Props): ReactElement {
const modal = useRef(null);
return (
<>
<Button title="Closer" onPress={() => modal.current.close()} />,
<Modal ref={modal} {...props} />
</>
);
}
Please let me know if I know something wrong.
Hope this helps!
from dooboo-ui.
I've summarized the props that AlertDialog needs.
Is there any option to add, modify, or remove? Please give me feedback.
types | default | |
---|---|---|
isOpen? | boolean | false |
type? | "alert" |"confirm" |"prompt" | "alert" |
color? | string | "#000000" |
modalStyle? | StyleProp | undefined |
backdropOpacity? | Number | 0.5 |
backdropPressToClose? | boolean | true |
renderContent? | (string) => JSX.Element | (string) => JSX.Element |
onPress | (result: any) => void | - |
from dooboo-ui.
The [AlertDialog] might be used globally so you might want to consider support for context provider which we had in Snackbar Legacy.
In out current SnackBar, we don't have the context provider and I just thought we need this support for the snackbar.
Thinking further, I think the [AlertDialog] is enough to be provided as ref
unlike the [Snackbar] because it is not necessary to run on multiple screens simultaneouly. The snackbar should be opened even when page is expired (if this is hard to understand, we can have a sync!).
As said in the description
, you can use react-native-modalbox
but then it should be written in separate package in package directory since we need extra dependency. This is one of our policy (still not explicitly written in our document 😓) on managing packages. I've also wrote a reply on the current context. Hope this helps!
Please tell if there are any further questions.
from dooboo-ui.
Closes via #87. Wasn't linked properly.
from dooboo-ui.
Related Issues (20)
- Support embedding default font HOT 1
- Detach main theme from `dooboo-ui` and maintain seperately HOT 1
- [bug] FAB gap styling HOT 2
- Theme support for packages HOT 1
- [New feature] Progress bar development proposal HOT 2
- Even if the app is set to dark mode in iOS, there is a problem that the dark mode theme does not apply when switching to the background. HOT 2
- [Bug report]: demos are not working HOT 6
- Contribution guide document's invalid links
- The CalendarCarousel distributed with npm is just a text component.
- [FR] Apply and detect dark mode in storybook HOT 1
- [FR] Roadmap for next UI components
- [FR] Storybook v7 migration and doc refactoring
- required import disappears when installed HOT 2
- Custom theme type overrides default theme type properties. HOT 1
- Add rightElement props to [Edittext]
- Invalid prop type color supplied to startElement In [Button] HOT 1
- [EditText] default padding in boxed type HOT 4
- [FR] Ability to change loading color in [Button] HOT 1
- Dependency Dashboard
- Action Required: Fix Renovate Configuration HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dooboo-ui.