Skip to content

Commit 4613e04

Browse files
author
Nur Fikri
committed
pack darkmode
1 parent 56ef552 commit 4613e04

File tree

12 files changed

+28
-16
lines changed

12 files changed

+28
-16
lines changed

examples/showcase/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from "react";
2-
import { ThemeProvider, useTheme } from "./src/rapi";
2+
import { ThemeProvider, useTheme } from "react-native-rapi-ui";
33
import Navigator from "./src/navigation";
44
import { enableScreens } from "react-native-screens";
55
export default function App() {

examples/showcase/package-lock.json

Lines changed: 2 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/showcase/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"react-dom": "16.13.1",
1818
"react-native": "https://github.com/expo/react-native/archive/sdk-41.0.0.tar.gz",
1919
"react-native-gesture-handler": "~1.10.2",
20-
"react-native-rapi-ui": "^0.1.2",
20+
"react-native-rapi-ui": "file:react-native-rapi-ui-0.2.0.tgz",
2121
"react-native-reanimated": "~2.1.0",
2222
"react-native-safe-area-context": "3.2.0",
2323
"react-native-screens": "~3.0.0",

examples/showcase/src/components/ColorCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from "react";
22
import { View } from "react-native";
3-
import { Text, themeColor, useTheme } from "../rapi";
3+
import { Text, themeColor, useTheme } from "react-native-rapi-ui";
44

55
interface Props {
66
color: keyof typeof themeColor;

examples/showcase/src/components/TypographyCard.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from "react";
22
import { View } from "react-native";
3-
import { Section, SectionContent, Text } from "../rapi";
4-
import { fontSize } from "../rapi/constants/typography";
3+
import { Section, SectionContent, Text } from "react-native-rapi-ui";
4+
import { fontSize } from "react-native-rapi-ui/constants/typography";
55
interface Props {
66
size?: keyof typeof fontSize;
77
}

examples/showcase/src/screens/Avatar.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ import {
99
themeColor,
1010
TopNav,
1111
useTheme,
12-
} from "../rapi";
12+
} from "react-native-rapi-ui";
1313
import { StackScreenProps } from "@react-navigation/stack";
1414
import { MainStackParamList } from "../types/navigation";
1515
import { Ionicons } from "@expo/vector-icons";
1616

1717
export default function ({
1818
navigation,
1919
}: StackScreenProps<MainStackParamList, "Avatar">) {
20-
const { isDarkmode } = useTheme();
20+
const { isDarkmode, setTheme } = useTheme();
2121
return (
2222
<Layout>
2323
<TopNav

examples/showcase/src/screens/Buttons.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
Section,
1010
SectionContent,
1111
useTheme,
12-
} from "../rapi";
12+
} from "react-native-rapi-ui";
1313
import { Ionicons } from "@expo/vector-icons";
1414
import { StackScreenProps } from "@react-navigation/stack";
1515
import { MainStackParamList } from "../types/navigation";

examples/showcase/src/screens/Colors.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
import { StackScreenProps } from "@react-navigation/stack";
22
import React from "react";
33
import { ScrollView, View } from "react-native";
4-
import { Layout, TopNav, Text, themeColor, useTheme } from "../rapi";
4+
import {
5+
Layout,
6+
TopNav,
7+
Text,
8+
themeColor,
9+
useTheme,
10+
} from "react-native-rapi-ui";
511
import { Ionicons } from "@expo/vector-icons";
612
import ColorCard from "../components/ColorCard";
713
import { MainStackParamList } from "../types/navigation";

examples/showcase/src/screens/Forms.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import {
1212
SectionContent,
1313
Section,
1414
useTheme,
15-
} from "../rapi";
15+
} from "react-native-rapi-ui";
1616
import { Ionicons } from "@expo/vector-icons";
1717
import { StackScreenProps } from "@react-navigation/stack";
1818
import { MainStackParamList } from "../types/navigation";

examples/showcase/src/screens/Home.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
import React from "react";
22
import { ScrollView, StyleSheet, View } from "react-native";
3-
import { Layout, TopNav, Text, themeColor, Button, useTheme } from "../rapi";
3+
import {
4+
Layout,
5+
TopNav,
6+
Text,
7+
themeColor,
8+
Button,
9+
useTheme,
10+
} from "react-native-rapi-ui";
411
import { Ionicons } from "@expo/vector-icons";
512
import { TouchableOpacity } from "react-native-gesture-handler";
613
import { StackScreenProps } from "@react-navigation/stack";

0 commit comments

Comments
 (0)