MCPcopy Create free account
hub / github.com/callstack/react-native-paper / renderFAB

Function renderFAB

example/src/Examples/AppbarExample.tsx:97–112  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

95 const TextComponent = theme.isV3 ? Text : Paragraph;
96
97 const renderFAB = () => {
98 return (
99 <FAB
100 mode={theme.isV3 ? 'flat' : 'elevated'}
101 size="medium"
102 icon="plus"
103 onPress={() => {}}
104 style={[
105 styles.fab,
106 theme.isV3
107 ? { top: (height - MEDIUM_FAB_HEIGHT) / 2 }
108 : { bottom: height / 2 + bottom },
109 ]}
110 />
111 );
112 };
113
114 const renderDefaultOptions = () => (
115 <>

Callers 1

AppbarExampleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…