Skip to main content

Sweetpotato provides an intuitive wrapper around React Native.

Project description


alt text alt text Documentation Status Code style: black

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.


See https://sweetpotato.readthedocs.io for documentation.


Simple example:

from sweetpotato.app import App
from sweetpotato.components import (
    View,
    Text,
)

app = App(
    children=[
        View(
            style={"justifyContent": "center", "alignItems": "center", "height": "100%"},
            children=[
                Text(text="Hello World")
            ],
        )
    ]
)

if __name__ == "__main__":
    app.run()                

Navigation example:

from sweetpotato.app import App
from sweetpotato.navigation import create_bottom_tab_navigator
from sweetpotato.components import (
    View,
    Text,
)

tab = create_bottom_tab_navigator()

tab.screen(screen_name="Screen One", children=[View(children=[Text(text="Hello")])])
tab.screen(screen_name="Screen Two", children=[View(children=[Text(text="World")])])

app = App(children=[tab])

if __name__ == "__main__":
    app.run()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sweetpotato-0.3.0a0.tar.gz (207.8 kB view hashes)

Uploaded Source

Built Distribution

sweetpotato-0.3.0a0-py3-none-any.whl (217.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page