-
Notifications
You must be signed in to change notification settings - Fork 486
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from chainapsis/fix-chart-animation
feat : main page view
- Loading branch information
Showing
15 changed files
with
751 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,14 @@ | ||
import React, { FunctionComponent } from "react"; | ||
import { StoreProvider } from "./stores"; | ||
import { AppNavigation } from "./navigation"; | ||
import { GlobalThemeProvider } from "./global-theme"; | ||
|
||
export const App: FunctionComponent = () => { | ||
return ( | ||
<StoreProvider> | ||
<AppNavigation /> | ||
</StoreProvider> | ||
<GlobalThemeProvider> | ||
<StoreProvider> | ||
<AppNavigation /> | ||
</StoreProvider> | ||
</GlobalThemeProvider> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import React, { FunctionComponent } from "react"; | ||
|
||
import { Text } from "react-native-elements"; | ||
import { View } from "react-native"; | ||
import { Bech32Address } from "@keplr-wallet/cosmos"; | ||
|
||
export interface AddressProps { | ||
maxCharacters: number; | ||
address: string; | ||
} | ||
|
||
export const Address: FunctionComponent<AddressProps> = ({ | ||
maxCharacters, | ||
address, | ||
}) => { | ||
return ( | ||
<View | ||
style={{ | ||
borderRadius: 100, | ||
borderWidth: 1, | ||
borderColor: "#e6e6e6", | ||
paddingHorizontal: 16, | ||
}} | ||
> | ||
<Text>{Bech32Address.shortenAddress(address, maxCharacters)}</Text> | ||
</View> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from "./white-button"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
import React, { FunctionComponent } from "react"; | ||
import { StyleProp, TextStyle, ViewStyle } from "react-native"; | ||
import { Button, useTheme } from "react-native-elements"; | ||
|
||
type WhiteButtonProps = { | ||
containerStyle?: StyleProp<ViewStyle>; | ||
buttonStyle?: StyleProp<ViewStyle>; | ||
titleStyle?: StyleProp<TextStyle>; | ||
disabled?: boolean; | ||
loading?: boolean; | ||
title: string; | ||
onPress: () => void; | ||
}; | ||
|
||
export const WhiteButton: FunctionComponent<WhiteButtonProps> = ({ | ||
containerStyle, | ||
buttonStyle, | ||
titleStyle, | ||
title, | ||
disabled, | ||
loading, | ||
onPress, | ||
}) => { | ||
const { theme } = useTheme(); | ||
|
||
return ( | ||
<Button | ||
containerStyle={{ | ||
flex: 1, | ||
...(containerStyle as Record<string, unknown>), | ||
}} | ||
buttonStyle={{ | ||
borderWidth: 1, | ||
borderColor: theme.colors?.primary, | ||
borderRadius: 5, | ||
backgroundColor: theme.colors?.white, | ||
paddingVertical: 10, | ||
paddingHorizontal: 20, | ||
...(buttonStyle as Record<string, unknown>), | ||
}} | ||
titleStyle={{ | ||
color: theme.colors?.primary, | ||
fontWeight: "500", | ||
...(titleStyle as Record<string, unknown>), | ||
}} | ||
title={title} | ||
onPress={onPress} | ||
loading={loading} | ||
disabled={disabled} | ||
/> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.