Skip to content

Latest commit

 

History

History
executable file
·
32 lines (25 loc) · 1.42 KB

faq-6.md

File metadata and controls

executable file
·
32 lines (25 loc) · 1.42 KB

{{-- Add events with components --}}

What events are available for the components?
Example buttons, list items etc.
Solution:
The NativeBase components are built on top of React Native components. Hence the callback events of React Native holds good with NativeBase components.
        <i>Example:</i> The <code>Button</code> component is actually a wrapper of the <code>TouchableOpacity</code> component of React Native. So you can just use the <code>onPress</code> callback function for event handling.<br /><br />

        Refer the 
        <a href="{{ url( 'cheatsheet' ) }}">cheatsheet</a> 
        for more details.
    </div>
</div>