diff --git a/example/src/Example.tsx b/example/src/Example.tsx index 83182fb..43da143 100644 --- a/example/src/Example.tsx +++ b/example/src/Example.tsx @@ -1,5 +1,5 @@ import React from 'react'; -import { Switch, View, ViewProps } from 'react-native'; +import { Switch, View, ViewProps, SafeAreaView, Text } from 'react-native'; import { StatusBar } from 'expo-status-bar'; import { styled, css, useTheme, theme } from './styled'; @@ -18,7 +18,20 @@ export default function Example({ <> - + + { + console.log({ pressed }); + return [ + { + backgroundColor: pressed ? 'red' : 'blue', + }, + ]; + }} + > + Styled function Pressable + +