0 purchases
sweetpotato 0.7.0a0
Sweetpotato 🥔
This project is still in early stages of development and is not stable.
Sweetpotato provides an intuitive wrapper around React Native, making cross-platform
development (iOS, Android, Web)
accessible from Python.
Supported packages include but are not limited to:
react-native
expo
react-navigation
react-native-ui-kitten
See https://sweetpotato.readthedocs.io for documentation.
You can view the below example at the following link:
https://snack.expo.dev/@greysonlalonde13/amused-crackers
from sweetpotato.app import App
from sweetpotato.components import Image, StyleSheet, Text, Button, View
from sweetpotato.config import settings
from sweetpotato.navigation import create_bottom_tab_navigator
settings.USE_NAVIGATION = True
styles = StyleSheet.create({
"image": {"height": 200, "width": 200, "borderRadius": 50},
"layout": {
"justifyContent": "center",
"alignItems": "center",
"flex": 1,
},
"text": {"margin": 25},
})
tab = create_bottom_tab_navigator(name="tab")
image_url = "https://raw.githubusercontent.com/greysonlalonde/sweetpotato/main/media/sweetpotatoes.JPG"
home_page = View(
style=styles.layout,
children=[
Image(style=styles.image, source={"uri": image_url}),
Text(style=styles.text, text="Sweet, Sweet Potatoes"),
Button(title="Info", on_press="() => alert('This app was made with sweetpotato')")
]
)
tab.screen(
screen_name="Home",
children=[home_page],
)
app = App(component=tab, theme="dark")
if __name__ == "__main__":
app.run()
iOS, Android, and web:
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.