insta-brain-app
v0.2.12
Published
insta-brain-app
Downloads
47
Readme
insta-brain-app
A React Native library that provides a WebView component for embedding InstaBrain web applications.
Installation
npm install insta-brain-appor
yarn add insta-brain-appUsage
import { useInstaBrainLauncher } from 'insta-brain-app';
export default function App() {
const launcher = useInstaBrainLauncher();
return (
<View style={{ flex: 1 }}>
<Text>InstaBrain Example</Text>
<Button title="Launch Mini App" onPress={() => { }} />
<launcher.Component />
</View>
);
}Features
- 🚀 Easy integration with React Native apps
- 📱 Cross-platform support (iOS, Android, Web)
- 🔧 Simple hook-based API
- 📦 Built with TypeScript
- 🌐 WebView-based component for embedding web applications
Development
Testing the Library
Run the example app to test the library:
yarn install
yarn example startBuilding
Build the library:
yarn prepareAvailable Scripts
yarn example- Run the example appyarn test- Run testsyarn typecheck- Type checkingyarn lint- Lint codeyarn clean- Clean build outputyarn prepare- Build the library
API Reference
useInstaBrainLauncher
Hook that provides the InstaBrain launcher component.
const launcher = useInstaBrainLauncher();Returns an object with:
Component: React component for rendering the InstaBrain WebView
Requirements
- React Native 0.79.4 or higher
- React 19.0.0 or higher
Contributing
See the contributing guide to learn how to contribute to the repository and the development workflow.
License
MIT
Made with create-react-native-library
