React Native SDK
React Native SDK for NeoX Payment Gateway
import { NeoXProvider } from '@neox/react-native-sdk'
const App = () => {
return (
<NeoXProvider
options={{
header: {
// containerStyle: {
// backgroundColor: 'blue',
// },
// titleStyle: {
// fontSize: 25,
// color: 'red',
// fontFamily: 'Montserrat-BoldItalic',
// },
// screenTitles: {
// paymentGatewayTitle: 'Cổng thanh toán NeoX',
// cardPaymentTitle: 'Thanh toán thẻ',
// transferPaymentTitle: 'Chuyển khoản ngân hàng',
// resultTitle: 'Ví NeoX',
// },
},
button: {
style: {
backgroundColor: 'blue',
color: 'white',
borderRadius: 0,
// fontSize: 22,
},
paymentLabel: 'Thanh toán ngay',
},
}}
>
<NavigationContainer>
<RootStack.Navigator
initialRouteName='ProductScreen'
screenOptions={{
animation:
Platform.OS === 'android' ? 'fade_from_bottom' : 'default',
}}
>
<RootStack.Screen
component={Products}
name='ProductScreen'
options={{ headerShown: false }}
/>
<RootStack.Screen
component={ProductDetails}
name='ProductDetailsScreen'
options={{ headerTitle: 'Chi tiết sản phẩm' }}
/>
</RootStack.Navigator>
</NavigationContainer>
</NeoXProvider>
)
}
export default AppMethods
Method
Description
Example
Params in initialize function
Parammetter
Data Type
Default Value
Description
Event
Description
Parameter
Data Type
Description
Was this helpful?