Skip to main content

React-native development for python.

Project description


alt text alt text

This project is still in early stages of development.

Sweetpotato provides an intuitive wrapper around React Native, making cross-platform development 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 TabNavigator
from sweetpotato.components import (
  View, 
  Text,
)

tab = TabNavigator()

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.1a0.tar.gz (207.5 kB view details)

Uploaded Source

Built Distribution

sweetpotato-0.1a0-py3-none-any.whl (218.7 kB view details)

Uploaded Python 3

File details

Details for the file sweetpotato-0.1a0.tar.gz.

File metadata

  • Download URL: sweetpotato-0.1a0.tar.gz
  • Upload date:
  • Size: 207.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.4

File hashes

Hashes for sweetpotato-0.1a0.tar.gz
Algorithm Hash digest
SHA256 d4afe4adf0275eb44937ba646fae27852916e2632e515f0f4da983d20e8e440c
MD5 dc7a0e47715d543dc55c632194d82b1b
BLAKE2b-256 100df04defa9caee828be2f2b9547e67d79a7d48ca4f384dc35e9414dc54f285

See more details on using hashes here.

File details

Details for the file sweetpotato-0.1a0-py3-none-any.whl.

File metadata

  • Download URL: sweetpotato-0.1a0-py3-none-any.whl
  • Upload date:
  • Size: 218.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.4

File hashes

Hashes for sweetpotato-0.1a0-py3-none-any.whl
Algorithm Hash digest
SHA256 94eb11c7e982a42e5e4a87802a92503db7847b4b71ad674e3b7b46a4c06258bc
MD5 ef34463d8836a4c7750051312766f109
BLAKE2b-256 ac8584acd350198ce47caf0dd91fc981a12ef75c43c52ba9e1fcd166b38be395

See more details on using hashes here.

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