From 2782d34a058a41448004f6b1225ea8879ed595f8 Mon Sep 17 00:00:00 2001 From: Brandon Presley Date: Fri, 14 Oct 2022 17:06:23 +1300 Subject: [PATCH] Use custom theme color for radio buttons --- StartPlan.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/StartPlan.tsx b/StartPlan.tsx index 4fbe2e5..bd96913 100644 --- a/StartPlan.tsx +++ b/StartPlan.tsx @@ -8,6 +8,7 @@ import React, {useCallback, useContext, useMemo, useRef, useState} from 'react'; import {NativeModules, TextInput, View} from 'react-native'; import {FlatList} from 'react-native-gesture-handler'; import {Button, IconButton, List, RadioButton} from 'react-native-paper'; +import {CustomTheme} from './App'; import {getBestSet} from './best.service'; import {PADDING} from './constants'; import CountMany from './count-many'; @@ -36,6 +37,7 @@ export default function StartPlan() { const unitRef = useRef(null); const navigation = useNavigation(); const workouts = useMemo(() => params.plan.workouts.split(','), [params]); + const {color} = useContext(CustomTheme); const [selection, setSelection] = useState({ start: 0, @@ -152,6 +154,7 @@ export default function StartPlan() { )}