@flek-ai/flektest-sdk
v0.5.0
Published
Instant testing for React Native
Downloads
195
Maintainers
Readme
🌌 @flek-ai/flektest-sdk
A FlekTestWidget
component allows your ⚛️ React Native application to import a widget on the flek platform and then test and deploy the widget instantly.
🎬 Watch the Demo!
🚀 Getting Started
- Create a new app on the flek platform, an app id will be generated
- Connect the github repo to the flek platform
- Create a new widget, a widget id will be generated
- Copy paste the code of the widget into the widget code editor and replace the widget code with
<FlekTestWidget />
- Modify the widget using AI prompts and generate the code
- Instant deploy the widget
Using Yarn:
yarn add @flek-ai/flektest-sdk
app/page.jsx
:
import * as React from 'react';
import { createFlekTestWidget } from '@flek-ai/flektest-sdk';
const { FlekTestWidget } = createFlekTestWidget({
widgetId: yourWidgetId,
appId: yourAppId,
verify: async () => true,
});
export default function App() {
return <FlekTestWidget />;
}
That is it! It just takes 2 minutes to get started.