phaselis v0.0.11-epsilom
Phaselis Framework π¨
A powerful, customizable, and beautiful UI component library for React Native applications. Phaselis provides a comprehensive set of pre-built components that help you build stunning mobile applications faster.
β¨ Features
- π― 20+ Ready-to-use Components: From basic buttons to complex form elements
- π¨ Customizable Theming: Built-in light and dark themes with easy customization
- π± Cross-Platform: Works seamlessly on both iOS and Android
- π§ TypeScript Support: Full TypeScript support with detailed type definitions
- π Style Variants: Multiple style variants for each component
- π Performance Optimized: Minimal build size and optimal runtime performance
π¦ Installation
With CLI
npx create-phaselis-app
Manual Installation
Please visit Manual Installation Guide.
NPM Installation
To install the library, follow these steps:
Add the library to your project:
npm install phaselis
Navigate to the iOS directory and install the CocoaPods dependencies:
cd ios pod install
Clean the build folder and rebuild the project:
xcodebuild clean
Open the
.xcworkspace
file in Xcode and run your project.
For more information, refer to the CocoaPods documentation.
π Documentation
For detailed documentation and examples, visit our documentation site.
π§ Setup
- Import and configure the PhaselisProvider:
import { Provider as PhaselisProvider, lightTheme, darkTheme } from "phaselis";
function App() {
return (
<PhaselisProvider theme={isDarkMode ? darkTheme : lightTheme}>
<YourApp />
</PhaselisProvider>
);
}
- Configure Unistyles:
import { lightTheme, darkTheme } from "phaselis";
import { UnistylesRegistry } from "react-native-unistyles";
type AppThemes = {
light: typeof lightTheme;
dark: typeof darkTheme;
};
declare module "react-native-unistyles" {
export interface UnistylesThemes extends AppThemes {}
}
UnistylesRegistry.addThemes({
light: lightTheme,
dark: darkTheme,
}).addConfig({
adaptiveThemes: true,
initialTheme: "light",
});
π― Components
Phaselis includes a wide range of components:
π Styling
Phaselis components are highly customizable through:
- Theme customization
- Style props
- Variant props
- Shadow support
- Linear gradient support
Example:
<Button
primary
style={{
container: {
backgroundColor: "yellow",
shadows: [
{
color: "#FCF596",
opacity: 0.8,
radius: 12,
offset: [-5, -3],
},
],
},
text: {
color: "white",
},
}}
>
Custom Button
</Button>
π€ Contributing
We welcome contributions! Please read our contributing guidelines before submitting pull requests.
8 months ago
9 months ago
7 months ago
9 months ago
9 months ago
5 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
7 months ago
6 months ago
8 months ago
6 months ago
6 months ago
7 months ago
8 months ago
9 months ago
6 months ago
8 months ago
6 months ago
6 months ago
8 months ago
9 months ago
9 months ago
8 months ago
6 months ago
6 months ago
8 months ago
8 months ago
9 months ago
9 months ago
9 months ago
8 months ago
5 months ago
8 months ago
9 months ago
9 months ago
9 months ago
9 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago