我正在尝试使用样式化组件使用Google字体为React Native创建自定义文本组件。我的代码是:
from ..adapter import DBAdapter
from .models import *
class Service1:
def __init__(self, a):
self.a = a
self._db_adapter = DBAdapter()
def create_customer(session, **kwargs):
c = Customer(**kwargs)
session.add(c)
return c
def do_something(self, x, y):
if x != 10:
with self._db_adapter.get_session() as session:
self.create_something(session, x)
return None
while self._db_adapter.get_session() as session:
self.create_customer(session, y)
self.create_something_else(session, x)
但是我遇到了错误
错误:无法解析声明“ fontFamily:'Work Sans',无衬线
这是为什么?