0.1.7 • Published 2 years ago
react-native-tikitech-skin-ai v0.1.7
react-native-tikitech-skin-ai
React Native Skin AI Library by Tikitech
Installation
npm install react-native-tikitech-skin-ai
iOS add to Info.plist
<key>NSAppTransportSecurity</key>
<dict>
<key>NSExceptionDomains</key>
<dict>
<key>res.cloudinary.com</key>
<dict>
<key>NSExceptionAllowsInsecureHTTPLoads</key>
<true/>
</dict>
</dict>
</dict>
Android add to AndroidManifest.xml
<application
...
android:usesCleartextTraffic="true"
>
Usage
import React from 'react'
import { StyleSheet, View } from 'react-native'
import TikitechSkinAi from 'react-native-tikitech-skin-ai'
export default function App() {
const _success = (data)=>{
console.log(data)
}
const _error = (e)=>{
console.log(e)
}
return (
<View style={styles.container}>
<TikitechSkinAi
debug //`debug = true` show log
baseURL={``} //domain api
apiKey={``} //apikey
email={``} //email user
userID={``} //user id
base64={``} //image base64
language={'en'} //language en or vi
font={null} //text font
header={null} //custom header component
onBack={null} //event button back on header default
onError={null} //event skin err
onSuccess={null} //event skin success
/>
</View>
)
}
const styles = StyleSheet.create({
container: {
flex: 1
},
})
Contributing
See the contributing guide to learn how to contribute to the repository and the development workflow.
License
MIT